id3c.tests.test_check_ad_files_symlink#
Tests for id3c.plans.flyscan_3idc._check_ad_files_symlink.
Verifies: - existing image-files symlink (symlink OR plain dir) is silently
accepted;
a missing symlink emits a WARNING containing the suggested
ln -scommand and the verification steps;the warning fires once per (master_dir, target) combination;
a custom read_path_template is reflected in the suggested target;
when read_path_template is missing the helper uses a placeholder the operator must fill in;
the helper never creates or modifies the link.
Functions#
A pre-existing ad_files symlink (any target) means no warning. |
|
A plain directory named {det.name}_files (no symlink) is accepted. |
|
Missing ad_files emits a WARNING with the ln -s recipe. |
|
|
Second call with the same (master_dir, target) is silent. |
A different master_dir legitimately warns again. |
|
Missing read_path_template yields a placeholder target. |
|
|
Pure paranoia: the helper must never create the link. |
Module Contents#
- id3c.tests.test_check_ad_files_symlink.test_existing_ad_files_symlink_is_accepted_silently(tmp_path, caplog)[source]#
A pre-existing ad_files symlink (any target) means no warning.
- id3c.tests.test_check_ad_files_symlink.test_existing_ad_files_directory_is_accepted_silently(tmp_path, caplog)[source]#
A plain directory named {det.name}_files (no symlink) is accepted.
- id3c.tests.test_check_ad_files_symlink.test_missing_ad_files_emits_warning_with_ln_s_command(tmp_path, caplog)[source]#
Missing ad_files emits a WARNING with the ln -s recipe.
Verifies the warning includes the suggested command, the verification step, and the audience-appropriate explanation.
- id3c.tests.test_check_ad_files_symlink.test_warning_fires_only_once_per_master_dir_target_combination(tmp_path, caplog)[source]#
Second call with the same (master_dir, target) is silent.
- id3c.tests.test_check_ad_files_symlink.test_warning_fires_again_when_master_dir_changes(tmp_path, caplog)[source]#
A different master_dir legitimately warns again.