|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| run_dir (tmp_path, monkeypatch) | |
| test_reports_component_count_ignoring_non_component_entries (run_dir) | |
| test_duration_is_the_write_span_and_is_flagged_approximate (run_dir) | |
| test_reports_size_and_cached_state (run_dir) | |
| test_summarize_does_not_export (run_dir, monkeypatch) | |
| test_reports_whether_a_config_snapshot_exists (run_dir) | |
| test_a_run_with_no_components_still_summarizes (tmp_path, monkeypatch) | |
| test_components_refuses_an_unindexed_run_rather_than_exporting (run_dir, monkeypatch) | |
| test_summary_route_rejects_a_bad_run_id_and_a_missing_run (run_dir) | |
Unit tests for the pre-index run summary, and the contract that opening a run is cheap. The point of this module is that selecting a run must not trigger a parquet export, so the tests assert the absence of work as much as the presence of numbers. Run: cd webviewer && .venv/bin/python -m pytest backend/test_summary.py -q
| backend.test_summary.run_dir | ( | tmp_path, | |
| monkeypatch ) |
A fake run laid out the way elodin-db lays one out: a numeric directory per component, each holding data/index/metadata/schema, plus non-component siblings.
Definition at line 19 of file test_summary.py.
| backend.test_summary.test_a_run_with_no_components_still_summarizes | ( | tmp_path, | |
| monkeypatch ) |
Definition at line 72 of file test_summary.py.
| backend.test_summary.test_components_refuses_an_unindexed_run_rather_than_exporting | ( | run_dir, | |
| monkeypatch ) |
GET /components used to export on demand, which made merely clicking a run in the list cost tens of seconds. It now refuses; POST /index is the way to pay that.
Definition at line 83 of file test_summary.py.
| backend.test_summary.test_duration_is_the_write_span_and_is_flagged_approximate | ( | run_dir | ) |
Definition at line 41 of file test_summary.py.
| backend.test_summary.test_reports_component_count_ignoring_non_component_entries | ( | run_dir | ) |
Definition at line 36 of file test_summary.py.
| backend.test_summary.test_reports_size_and_cached_state | ( | run_dir | ) |
Definition at line 48 of file test_summary.py.
| backend.test_summary.test_reports_whether_a_config_snapshot_exists | ( | run_dir | ) |
Definition at line 64 of file test_summary.py.
| backend.test_summary.test_summarize_does_not_export | ( | run_dir, | |
| monkeypatch ) |
Definition at line 54 of file test_summary.py.
| backend.test_summary.test_summary_route_rejects_a_bad_run_id_and_a_missing_run | ( | run_dir | ) |
Definition at line 95 of file test_summary.py.