Align event frame archive fixture

This commit is contained in:
Dom
2026-10-23 07:07:26 -05:00
parent 6d201df86a
commit 18b6a4a458
2 changed files with 5 additions and 2 deletions
@@ -57,10 +57,13 @@ def test_actual_fit_missing_stage_frame_is_fail_closed():
mock.patch('openpilot.starpilot.flm.event_raw_fit.fit_event_physical', return_value=model), \
mock.patch('openpilot.starpilot.flm.event_raw_fit.objective_excited', return_value=True), \
mock.patch('openpilot.starpilot.flm.event_raw_fit.control_from_dict',
side_effect=lambda values: SimpleNamespace(control_ns=values['stamp'])), \
side_effect=lambda values, *, trace_archive: SimpleNamespace(control_ns=values['stamp'])) as control, \
mock.patch('openpilot.starpilot.flm.event_raw_fit.output_from_dict',
side_effect=lambda values: SimpleNamespace(apply_ns=values['stamp'])), \
mock.patch('openpilot.starpilot.flm.event_raw_fit.delivered', return_value=.01), \
pytest.raises(ValueError, match='supported actual physical response'):
engine.projected[first_stage['apply_ns']] = (.01, (1.,))
fit_event_torque({}, engine, objective)
# This isolated legacy fixture has no normalized trace archive; the stage
# decoder must still receive the explicit archive argument before the join.
control.assert_called_once_with(first_stage['control'], trace_archive=None)
+1 -1
View File
@@ -1 +1 @@
{"protected_inventory_sha256": "22e0802e6262911b9e33f947e76ef062d02177488c9ef902f1b8a6f028ddf2a4", "schema_version": 1}
{"protected_inventory_sha256": "cf93b582e6b451e24d05a20749b5e9efae76d8a675aa4cf540c5a71579efca87", "schema_version": 1}