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#

test_wait_for_openable_returns_true_for_existing_file(...)

A valid HDF5 file opens on the first try.

test_wait_for_openable_returns_false_for_missing_file(...)

A nonexistent path returns False after retries (no raise).

test_wait_for_openable_returns_false_for_non_hdf5_path(...)

A path that exists but is not a valid HDF5 file returns False.

test_wait_for_openable_append_mode_works(tmp_path)

Append mode opens a writable file successfully.

test_wait_for_openable_respects_timeout_budget(tmp_path)

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.

id3c.tests.test_wait_for_openable.test_wait_for_openable_append_mode_works(tmp_path)[source]#

Append mode opens a writable file successfully.

id3c.tests.test_wait_for_openable.test_wait_for_openable_respects_timeout_budget(tmp_path)[source]#

Helper exits within the timeout budget on persistent failure.