Complete synchronization test fixtures

This commit is contained in:
firestar5683
2026-11-02 22:38:34 +00:00
parent f00fc85847
commit 1ecde54bb0
2 changed files with 2 additions and 2 deletions
@@ -151,7 +151,7 @@ def test_observed_availability_and_big_eligibility(monkeypatch, present, cable,
start = next(i for i, node in enumerate(body) if isinstance(node, ast.ImportFrom) and node.module == manager.__name__)
end = next(i for i, node in enumerate(body) if ast.unparse(node) == "gc.disable()")
params = Mock()
env: dict = {"chestnut_present": Mock(return_value=present), "cable_connected": Mock(return_value=cable),
env: dict = {"chestnut_present": Mock(return_value=present), "cable_connected": Mock(return_value=cable), "usb_host_connected": Mock(return_value=False),
"chestnut_compiled": Mock(return_value=compiled), "Params": lambda: params,
"jetlink_adapter": SimpleNamespace(link_on=lambda: link)}
execute(body[start:end], env)
@@ -9,7 +9,7 @@ def test_union_columns_keep_rows_aligned_when_controller_changes():
for stamp, branch, output in [(3, 'pidState', 0.25), (1, 'torqueState', 0.5), (2, 'pidState', 0.75)]:
message = messaging.new_message('controlsState')
message.logMonoTime = stamp * 10**9
getattr(message.controlsState.lateralControlState, 'init')(branch).output = output
message.controlsState.lateralControlState.init(branch).output = output
messages.append(message)
group = msgs_to_time_series(messages)['controlsState']
assert group['t'].tolist() == [1., 2., 3.]