STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
conftest.py
Go to the documentation of this file.
1"""Test tiers for the physics core.
2
3The fast tier (`scripts/check.sh`, `pytest -m "not slow"`) leaves out the tests
4that integrate a whole burn; CI runs everything. Measured 2026-10-06 with
5`--durations`: each of these took over ~3.5 s. Re-measure before adding to it.
6"""
7
8from __future__ import annotations
9
10import pytest
11
12SLOW_TESTS = {
13 "test_chamber_pressure_moves_less_than_tank_pressure",
14 "test_a_layer1_engine_fires_on_a_real_feed_system",
15 "test_mixture_ratio_drifts_over_a_burn",
16 "test_a_chilling_tank_climbs_and_climbs_more_the_harder_the_dewar_pushes",
17 "test_radau_agrees_with_bdf",
18 "test_expulsion_matches_closed_form",
19 "test_the_ox_lead_shows_up_in_the_trace",
20 "test_expulsion_deviation_is_the_compressibility",
21 # LE4 with its cart drawn (2026-10-07): a LOX load from a drawn dewar is a
22 # minute of cryogen numerics, the fuel pad and the dome pad seconds each.
23 "test_ox_fill_loads_the_flight_lox_tank_from_the_dewar",
24 "test_the_pad_charges_the_copv_and_loads_fuel_through_the_drawing",
25 "test_the_dome_loads_on_the_pad_and_holds_when_its_valve_shuts",
26 # 50 s of a vented LOX load (2026-11-02), ~18 s.
27 "test_a_vented_lox_load_keeps_its_ullage_over_the_liquid",
28}
29
30
31def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:
32 for item in items:
33 if item.name.split("[")[0] in SLOW_TESTS:
34 item.add_marker(pytest.mark.slow)
None pytest_collection_modifyitems(list[pytest.Item] items)
Definition conftest.py:31