mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-20 20:43:56 +08:00
* add pytest-asyncio * switch common * switch selfdrive * switch system * switch tools * small fixes * fix setUp and valgrind pytest * switch to setup * fix random * switch mock * switch test_lateral_limits * revert test_ui * fix poetry.lock * add unittest to banned-api * add inline ignores to remaining unittest imports * revert test_models * revert check_can_parser_performance * one more skip --------- Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
20 lines
515 B
Python
Executable File
20 lines
515 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from openpilot.selfdrive.car.values import PLATFORMS
|
|
|
|
|
|
class TestPlatformConfigs:
|
|
def test_configs(self, subtests):
|
|
|
|
for name, platform in PLATFORMS.items():
|
|
with subtests.test(platform=str(platform)):
|
|
assert platform.config._frozen
|
|
|
|
if platform != "MOCK":
|
|
assert "pt" in platform.config.dbc_dict
|
|
assert len(platform.config.platform_str) > 0
|
|
|
|
assert name == platform.config.platform_str
|
|
|
|
assert platform.config.specs is not None
|