STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_layerx_router Namespace Reference

Functions

 api (tmp_path, monkeypatch)
lx.Job _saved (session, str run_id, str kind="run", float impulse=24000.0)
 test_one_job_at_a_time_is_a_409_before_any_work (api)
 test_the_listing_reads_the_index_and_carries_names_and_pins (api)
 test_pruning_keeps_the_newest_per_kind_and_every_pinned_run (api, monkeypatch)
 test_delete_removes_the_run_its_entry_and_its_notes_but_not_a_live_job (api)
 test_a_restated_measurement_is_bounded ()
 test_the_listing_quotes_one_burn_the_delivered_one ()
 test_a_card_centre_that_is_not_a_pressure_names_the_callers_number ()
 test_a_job_is_filed_under_the_design_that_is_open (api, monkeypatch)
 test_a_job_records_the_design_fingerprint_beside_its_name (api)
 test_a_run_names_the_code_the_server_loaded_not_the_checkout_now (monkeypatch)

Detailed Description

The Layer X routes beyond the happy path (backend/routers/layerx.py).

The router had one test, a burn that worked. These are the paths that decide whether a person
loses work or reads a wrong state: the one-job rule, what pruning keeps, pins, names and notes,
deleting, the listing's index, the study's refusals and the measurement bounds. They run without
a burn except where a preflight is the thing under test.

Function Documentation

◆ _saved()

lx.Job test_layerx_router._saved ( session,
str run_id,
str kind = "run",
float impulse = 24000.0 )
protected

◆ api()

test_layerx_router.api ( tmp_path,
monkeypatch )

Definition at line 27 of file test_layerx_router.py.

◆ test_a_card_centre_that_is_not_a_pressure_names_the_callers_number()

test_layerx_router.test_a_card_centre_that_is_not_a_pressure_names_the_callers_number ( )
POST /engine-card with center_psia -5 said "the config states no tank pressure" though it stated 578.

Definition at line 126 of file test_layerx_router.py.

◆ test_a_job_is_filed_under_the_design_that_is_open()

test_layerx_router.test_a_job_is_filed_under_the_design_that_is_open ( api,
monkeypatch )
Every Layer X run was recorded as design 'default' whatever design the bar had open: the design
bar loads a design with POST /config/load, which keeps the session's first config_path, and the
router filed jobs under that file's stem. sweepFor's 'never borrow another design's sweep' was then
defeated. A job started with the bar's X-Design-Id is filed under that design's name.

Definition at line 134 of file test_layerx_router.py.

◆ test_a_job_records_the_design_fingerprint_beside_its_name()

test_layerx_router.test_a_job_records_the_design_fingerprint_beside_its_name ( api)

Definition at line 170 of file test_layerx_router.py.

◆ test_a_restated_measurement_is_bounded()

test_layerx_router.test_a_restated_measurement_is_bounded ( )

Definition at line 104 of file test_layerx_router.py.

◆ test_a_run_names_the_code_the_server_loaded_not_the_checkout_now()

test_layerx_router.test_a_run_names_the_code_the_server_loaded_not_the_checkout_now ( monkeypatch)
A server started at 9ebd9fa0 and never restarted filed its second burn as '170af951-dirty' once
other commits landed: git describe was asked per run. The code a process runs is what it imported.

Definition at line 177 of file test_layerx_router.py.

◆ test_delete_removes_the_run_its_entry_and_its_notes_but_not_a_live_job()

test_layerx_router.test_delete_removes_the_run_its_entry_and_its_notes_but_not_a_live_job ( api)

Definition at line 89 of file test_layerx_router.py.

References _saved().

◆ test_one_job_at_a_time_is_a_409_before_any_work()

test_layerx_router.test_one_job_at_a_time_is_a_409_before_any_work ( api)

Definition at line 48 of file test_layerx_router.py.

◆ test_pruning_keeps_the_newest_per_kind_and_every_pinned_run()

test_layerx_router.test_pruning_keeps_the_newest_per_kind_and_every_pinned_run ( api,
monkeypatch )

Definition at line 75 of file test_layerx_router.py.

References _saved().

◆ test_the_listing_quotes_one_burn_the_delivered_one()

test_layerx_router.test_the_listing_quotes_one_burn_the_delivered_one ( )
The list swapped in the replay's delivered impulse but kept the twin's mean thrust, so impulse
over burn time was not the mean it printed (LE4 (3): 23737.9 N s delivered beside 6183.8 N).

Definition at line 116 of file test_layerx_router.py.

◆ test_the_listing_reads_the_index_and_carries_names_and_pins()

test_layerx_router.test_the_listing_reads_the_index_and_carries_names_and_pins ( api)

Definition at line 58 of file test_layerx_router.py.

References _saved().