From 56a1ae4bb721594cc68952e5747a3ebc652f62d9 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 30 Mar 2023 15:46:38 -0700 Subject: [PATCH] formatting --- selfdrive/controls/tests/test_startup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/selfdrive/controls/tests/test_startup.py b/selfdrive/controls/tests/test_startup.py index 18c8e79026..6d487fce10 100755 --- a/selfdrive/controls/tests/test_startup.py +++ b/selfdrive/controls/tests/test_startup.py @@ -6,7 +6,7 @@ from parameterized import parameterized from cereal import log, car import cereal.messaging as messaging from common.params import Params -from selfdrive.boardd.boardd_api_impl import can_list_to_can_capnp # pylint: disable=no-name-in-module,import-error +from selfdrive.boardd.boardd_api_impl import can_list_to_can_capnp # pylint: disable=no-name-in-module,import-error from selfdrive.car.fingerprints import _FINGERPRINTS from selfdrive.car.toyota.values import CAR as TOYOTA from selfdrive.car.mazda.values import CAR as MAZDA @@ -36,6 +36,7 @@ CX5_FW_VERSIONS = [ (Ecu.transmission, 0x7e1, None, b'PYNC-21PS1-B\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), ] + class TestStartup(unittest.TestCase): @parameterized.expand([ @@ -92,7 +93,7 @@ class TestStartup(unittest.TestCase): cp.carFw = car_fw params.put("CarParamsCache", cp.to_bytes()) - time.sleep(2) # wait for controlsd to be ready + time.sleep(2) # wait for controlsd to be ready pm.send('can', can_list_to_can_capnp([[0, 0, b"", 0]])) time.sleep(0.1) @@ -112,7 +113,7 @@ class TestStartup(unittest.TestCase): if not params.get_bool("ObdMultiplexingChanged"): params.put_bool("ObdMultiplexingChanged", True) - msgs = [[addr, 0, b'\x00'*length, 0] for addr, length in finger.items()] + msgs = [[addr, 0, b'\x00' * length, 0] for addr, length in finger.items()] pm.send('can', can_list_to_can_capnp(msgs)) time.sleep(0.01) @@ -125,5 +126,6 @@ class TestStartup(unittest.TestCase): else: self.fail(f"failed to fingerprint {car_model}") + if __name__ == "__main__": unittest.main()