id3c.tests.test_ad_plugins#
Unit tests for id3c.plans.ad_plugins.
These tests use an ophyd Device with in-memory Signal
components as a stand-in for an area-detector file plugin. No
EPICS PVs are required, so the tests run on the off-network
development host.
Functions#
|
Return a freshly constructed fake plugin. |
|
|
All other reportable kinds (including read-only) are yielded. |
|
|
Selection order is alphabetical for predictability. |
The diagnostic prints one row per reportable component. |
|
|
Read-only component shows |
|
Multiple kwargs collapse to a single |
Each setpoint appears in the corresponding |
|
An empty call still yields one message (so @plan does not warn). |
|
|
Unknown kwargs raise |
|
A kwarg naming an |
|
A kwarg naming a read-only component raises |
Both errors at once: |
Module Contents#
- id3c.tests.test_ad_plugins.test_select_skips_omitted(plugin)[source]#
omittedkind components are not yielded.
- id3c.tests.test_ad_plugins.test_select_includes_config_normal_hinted_readonly(plugin)[source]#
All other reportable kinds (including read-only) are yielded.
- id3c.tests.test_ad_plugins.test_select_is_sorted(plugin)[source]#
Selection order is alphabetical for predictability.
- id3c.tests.test_ad_plugins.test_read_prints_table_with_expected_rows(plugin)[source]#
The diagnostic prints one row per reportable component.
- id3c.tests.test_ad_plugins.test_read_marks_readonly_access(plugin)[source]#
Read-only component shows
R-; read-write showsRW.
- id3c.tests.test_ad_plugins.test_set_emits_one_mv_per_call(plugin)[source]#
Multiple kwargs collapse to a single
bps.mvinvocation.
- id3c.tests.test_ad_plugins.test_set_values_propagate_through_messages(plugin)[source]#
Each setpoint appears in the corresponding
Msg.args.
- id3c.tests.test_ad_plugins.test_set_no_kwargs_yields_null_message(plugin)[source]#
An empty call still yields one message (so @plan does not warn).
- id3c.tests.test_ad_plugins.test_set_rejects_unknown_kwarg(plugin)[source]#
Unknown kwargs raise
KeyErrorbefore any message is yielded.
- id3c.tests.test_ad_plugins.test_set_rejects_omitted_kwarg(plugin)[source]#
A kwarg naming an
omitted-kind component is unknown.