Orchestrata Ultimate › Tests › Reference › scripts › test_run_tests_container_cpu

Tests reference — tests/scripts/test_run_tests_container_cpu.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_run_tests_container_cpu.py

source · 7 tests · 176 lines

Tests for scripts/run_tests.py's container-CPU wiring (recommendation #5,

Kind Name Line Description
class TestSnapshotAndMeasureHelpers 50 Direct, in-process calls. Every env variation is an explicit Mapping
method TestSnapshotAndMeasureHelpers.test_snapshot_before_returns_a_real_snapshot 54
method TestSnapshotAndMeasureHelpers.test_measure_is_a_noop_when_before_is_none 61
method TestSnapshotAndMeasureHelpers.test_measure_persists_a_real_delta 64
method TestSnapshotAndMeasureHelpers.test_snapshot_before_never_raises_on_a_broken_incus_socket 76 Real, deliberate break -- not a mock: INCUS_SOCKET pointed at a
method TestSnapshotAndMeasureHelpers.test_measure_never_raises_on_a_broken_incus_socket 90
class TestMainWiring 132 Full end-to-end via a real subprocess -- proves the _main() wiring
method TestMainWiring.test_real_run_persists_a_record_joinable_by_run_id 136 Real run_tests.py invocation, real infra, real containers: the
method TestMainWiring.test_run_completes_normally_when_the_measurement_path_is_broken 160 The never-fail property, proved with a REAL run and a REAL