id3c.tests.test_ensure_ad_files_symlink#
Tests for id3c.plans.flyscan_3idc._ensure_ad_files_symlink.
The plan auto-creates the per-detector image-files symlink
({det.name}_files) next to the master file when it is safe to do
so, and falls back to a descriptive WARNING otherwise. It must never
raise.
Functions#
|
A resolvable mount yields a real symlink named {det.name}_files. |
|
The link name tracks det.name (e.g. pilatus -> pilatus_files). |
An existing link of any kind is left untouched and accepted. |
|
A plain directory of the right name is accepted, not replaced. |
|
|
No read_path_template -> no link created, a WARNING is emitted. |
|
A read_path_template that points nowhere -> no link, WARNING. |
|
A non-existent master_dir (cannot symlink into) -> False, no raise. |
Module Contents#
- id3c.tests.test_ensure_ad_files_symlink.test_creates_symlink_when_target_exists(tmp_path)[source]#
A resolvable mount yields a real symlink named {det.name}_files.
- id3c.tests.test_ensure_ad_files_symlink.test_symlink_name_follows_detector_name(tmp_path)[source]#
The link name tracks det.name (e.g. pilatus -> pilatus_files).
- id3c.tests.test_ensure_ad_files_symlink.test_idempotent_when_link_already_present(tmp_path)[source]#
An existing link of any kind is left untouched and accepted.
- id3c.tests.test_ensure_ad_files_symlink.test_existing_plain_directory_is_accepted(tmp_path)[source]#
A plain directory of the right name is accepted, not replaced.
- id3c.tests.test_ensure_ad_files_symlink.test_warns_when_target_unknown(tmp_path, caplog)[source]#
No read_path_template -> no link created, a WARNING is emitted.