|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Variables | |
| str | CONFIG_TOML |
| str | T7_TOML |
Unit tests for the per-run config snapshot → human names. The entity spellings asserted here are the ones DatabaseConfig.cpp actually writes, and the slot arithmetic is LoadActiveBoards' (`board_id % 10`, 0 → 10). If either moves, this file is where the viewer finds out. Run: cd webviewer && .venv/bin/python -m pytest backend/test_run_config.py -q
| backend.test_run_config.elodin_dir | ( | tmp_path, | |
| monkeypatch ) |
Definition at line 53 of file test_run_config.py.
| backend.test_run_config.labels | ( | elodin_dir | ) |
Definition at line 63 of file test_run_config.py.
References snapshot().
| None backend.test_run_config.snapshot | ( | elodin_dir, | |
| str | run_id, | ||
| str | text ) |
Definition at line 58 of file test_run_config.py.
Referenced by labels(), test_actuator_role_board_id_defaults_to_the_first_actuator_board(), test_actuator_role_wins_over_a_sensor_role_on_the_same_channel(), test_annotate_stamps_labels_and_state_metadata(), test_ball_valve_role_names_its_own_entities(), test_malformed_snapshot_does_not_raise(), test_t7_channels_take_their_role_raw_and_calibrated(), and test_t7_without_a_thermocouple_names_no_cold_junction().
| backend.test_run_config.test_actuator_role_board_id_defaults_to_the_first_actuator_board | ( | elodin_dir | ) |
Definition at line 125 of file test_run_config.py.
References snapshot().
| backend.test_run_config.test_actuator_role_names_sense_and_command_entities | ( | labels | ) |
Definition at line 90 of file test_run_config.py.
| backend.test_run_config.test_actuator_role_wins_over_a_sensor_role_on_the_same_channel | ( | elodin_dir | ) |
Definition at line 137 of file test_run_config.py.
References snapshot().
| backend.test_run_config.test_annotate_reports_a_run_with_no_snapshot | ( | elodin_dir | ) |
Definition at line 221 of file test_run_config.py.
| backend.test_run_config.test_annotate_stamps_labels_and_state_metadata | ( | elodin_dir | ) |
Definition at line 205 of file test_run_config.py.
References snapshot().
| backend.test_run_config.test_ball_valve_role_names_its_own_entities | ( | elodin_dir | ) |
Definition at line 97 of file test_run_config.py.
References snapshot().
| backend.test_run_config.test_board_entities_are_keyed_by_board_id_not_slot | ( | labels | ) |
Definition at line 150 of file test_run_config.py.
| backend.test_run_config.test_board_id_last_digit_is_the_elodin_slot | ( | labels | ) |
Definition at line 77 of file test_run_config.py.
| backend.test_run_config.test_engine_state_is_not_a_state_field | ( | ) |
Definition at line 185 of file test_run_config.py.
| backend.test_run_config.test_malformed_snapshot_does_not_raise | ( | elodin_dir | ) |
Definition at line 199 of file test_run_config.py.
References snapshot().
| backend.test_run_config.test_missing_snapshot_degrades_to_numbers | ( | elodin_dir | ) |
Definition at line 194 of file test_run_config.py.
| backend.test_run_config.test_self_test_entity_resolves_through_its_board | ( | labels | ) |
Definition at line 159 of file test_run_config.py.
| backend.test_run_config.test_sensor_role_names_raw_and_calibrated | ( | labels | ) |
Definition at line 71 of file test_run_config.py.
| backend.test_run_config.test_slot_zero_means_ten | ( | ) |
Definition at line 84 of file test_run_config.py.
| backend.test_run_config.test_states_fall_back_to_the_builtin_table_with_no_snapshot | ( | ) |
Definition at line 180 of file test_run_config.py.
| backend.test_run_config.test_states_override_the_builtin_table_entry_by_entry | ( | labels, | |
| elodin_dir ) |
Definition at line 173 of file test_run_config.py.
| backend.test_run_config.test_t7_channels_take_their_role_raw_and_calibrated | ( | elodin_dir | ) |
Definition at line 258 of file test_run_config.py.
References snapshot().
| backend.test_run_config.test_t7_without_a_thermocouple_names_no_cold_junction | ( | elodin_dir | ) |
Definition at line 274 of file test_run_config.py.
References snapshot().
| backend.test_run_config.test_unnamed_entities_get_no_label | ( | labels | ) |
Definition at line 164 of file test_run_config.py.
| str backend.test_run_config.CONFIG_TOML |
Definition at line 15 of file test_run_config.py.
| str backend.test_run_config.T7_TOML |
Definition at line 229 of file test_run_config.py.