From 6581b6b5ad1cfb9cb7a90b21031758040f1e00c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20R=C4=85czy?= Date: Thu, 3 Apr 2025 20:12:18 -0700 Subject: [PATCH] Fix static issues --- selfdrive/locationd/test/test_lagd.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/selfdrive/locationd/test/test_lagd.py b/selfdrive/locationd/test/test_lagd.py index 6de0130cde..fb16310354 100644 --- a/selfdrive/locationd/test/test_lagd.py +++ b/selfdrive/locationd/test/test_lagd.py @@ -72,8 +72,12 @@ class TestLagd: msgs = [ (t, "carControl", mock.Mock(latActive=True)), (t, "carState", mock.Mock(vEgo=vego, steeringPressed=False)), - (t, "controlsState", mock.Mock(desiredCurvature=desired_cuvature, lateralControlState=mock.Mock(which=mock.Mock(return_value='debugControlState'), debugControlState=ZeroMock()))), - (t, "livePose", mock.Mock(orientationNED=ZeroMock(), velocityDevice=ZeroMock(), accelerationDevice=ZeroMock(), angularVelocityDevice=ZeroMock(z=actual_yr))), + (t, "controlsState", mock.Mock(desiredCurvature=desired_cuvature, + lateralControlState=mock.Mock(which=mock.Mock(return_value='debugControlState'), debugControlState=ZeroMock()))), + (t, "livePose", mock.Mock(orientationNED=ZeroMock(), + velocityDevice=ZeroMock(), + accelerationDevice=ZeroMock(), + angularVelocityDevice=ZeroMock(z=actual_yr))), ] for t, w, m in msgs: estimator.handle_log(t, w, m) @@ -92,7 +96,7 @@ class TestLagd: estimator = LateralLagEstimator(mocked_CP, 0.05) ds = [] - for i in range(1000): + for _ in range(1000): st = time.perf_counter() estimator.update_points() estimator.update_estimate()