Repair CI fixtures after Card and UI changes

This commit is contained in:
firestar5683
2026-11-28 23:53:31 -06:00
parent 040e367fb2
commit 70dfdfca6f
2 changed files with 16 additions and 14 deletions
@@ -15,6 +15,19 @@ def settings(monkeypatch, topology):
monkeypatch.ford_topology = topology
monkeypatch.ford_nonzero = True
monkeypatch.ford_native_10hz = True
calls = []
observe = card_native.ford_native_observation
def traced_native(native, **kwargs):
result = observe(native, **kwargs)
calls.append({'now': kwargs['now_ns'], 'latched': kwargs['latched'], 'pending': kwargs['pending_since_ns'],
'restricted': kwargs['restricted'], 'result': result,
'native': None if native is None else [native.requestedLateral, native.lateralAllowed,
native.requestedLongitudinal, native.longitudinalAllowed]})
return result
monkeypatch.setattr(card_native, 'ford_native_observation', traced_native)
return calls
@pytest.mark.parametrize('identity,alpha,hands_free,topology', [
@@ -28,10 +41,10 @@ def settings(monkeypatch, topology):
('startup', 'paired'), ('startup', 'axis-delayed'), ('startup', 'state-delayed'),
('brake', 'health-first'), ('brake', 'wire-first'), ('startup', 'native-timeout'),
])
def test_initial_request_and_longitudinal_withdrawal(ford_joined, monkeypatch, scenario, delivery):
def test_initial_request_and_longitudinal_withdrawal(settings, ford_joined, monkeypatch, scenario, delivery):
invalid = [False]
injected = [False]
calls = []
calls = settings
delayed = {}
negative_checked = [False]
if delivery == 'native-timeout':
@@ -65,17 +78,6 @@ def test_initial_request_and_longitudinal_withdrawal(ford_joined, monkeypatch, s
return update(timestamp, adjusted)
local.setattr(sd.sm, 'update_msgs', calibration)
observe = card_native.ford_native_observation
def traced_native(native, **kwargs):
result = observe(native, **kwargs)
calls.append({'now': kwargs['now_ns'], 'latched': kwargs['latched'], 'pending': kwargs['pending_since_ns'],
'restricted': kwargs['restricted'], 'result': result,
'native': None if native is None else [native.requestedLateral, native.lateralAllowed,
native.requestedLongitudinal, native.longitudinalAllowed]})
return result
local.setattr(card_native, 'ford_native_observation', traced_native)
pending = getattr(card_module, 'ford_awaiting_initial_request', None)
if pending is not None:
def checked_pending(cp, cs, sm, native, feedback, intent, **kwargs):
+1 -1
View File
@@ -1 +1 @@
{"protected_inventory_sha256": "0f032f75ad4ffbe0d6d0e997ec4ee8c26ab40bead9eafa72542f9481668410f4", "schema_version": 1}
{"protected_inventory_sha256": "ed8eb9f3021ba62e3636405913cec9a0a76e0f786d8df76a31df71e6f4981604", "schema_version": 1}