id3c.tests.test_wait_for_openable#
Tests for id3c.plans.flyscan_3idc._wait_for_openable.
Pure-Python: builds real HDF5 files in a tmp dir, no IOC, no ophyd, no bluesky. Exercises the success path, the missing-file path, and the bounded-timeout behaviour.
Functions#
A valid HDF5 file opens on the first try. |
|
A nonexistent path returns False after retries (no raise). |
|
A path that exists but is not a valid HDF5 file returns False. |
|
|
Append mode opens a writable file successfully. |
Helper exits within the timeout budget on persistent failure. |
Module Contents#
- id3c.tests.test_wait_for_openable.test_wait_for_openable_returns_true_for_existing_file(tmp_path)[source]#
A valid HDF5 file opens on the first try.
- id3c.tests.test_wait_for_openable.test_wait_for_openable_returns_false_for_missing_file(tmp_path)[source]#
A nonexistent path returns False after retries (no raise).
- id3c.tests.test_wait_for_openable.test_wait_for_openable_returns_false_for_non_hdf5_path(tmp_path)[source]#
A path that exists but is not a valid HDF5 file returns False.