Dean Lee
58df39a2ba
selfdrive/car: ban imports from external modules ( #32973 )
...
* lint import
* Update selfdrive/car/__init__.py
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 83d4623590
10 months ago
Adeeb Shihadeh
86b6103657
test_*.py files are no longer executable ( #32610 )
...
* test_*.py files are no longer executable
* cleanup empty lines
* update precommit
* fixme
* enable
* build
old-commit-hash: c59887c810
11 months ago
cl0cks4fe
639a634f7c
Unittest to pytest ( #32366 )
...
* 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>
old-commit-hash: dd9d5d4528
12 months ago
Justin Newberry
e9ca84c95c
platformconfig and carspecs are now required, carspecs no longer kwarg ( #31667 )
...
* required
* mock can be a platform!
* default is mock
* fix that
* and that one
old-commit-hash: b0eae8c1b7
1 year ago
Justin Newberry
b28343e276
Revert "Pytest: run tests in random order" ( #30469 )
...
Revert "Pytest: run tests in random order (#30134 )"
This reverts commit bdc0624d0320e75b521a8edcf4aebacb6ab96a75.
old-commit-hash: ba3067a560
1 year ago
Justin Newberry
586fe682e4
Pytest: run tests in random order ( #30134 )
...
* enable random order
* logprint info
* revert that
* better logging
* go to dfu
* try to flash every panda if not up to date
* revert panda debugging
old-commit-hash: a5d99e0ebb
1 year ago
Adeeb Shihadeh
16ec56398c
add openpilot prefix to imports ( #29498 )
...
* add openpilot prefix to imports
* more
* more
* fix docs
* fix linter
* bump submodules
* fix patched tests
* update dynamic imports
* debug
* Revert "debug"
This reverts commit db5e13b991
.
* fix pm test
old-commit-hash: a9626f95b6
2 years ago
Shane Smiskol
0ceb423ccc
Car interface: require fingerprint and FW versions to get params ( #26932 )
...
* require fingerprint and FW versions
* add get_non_essential_params()
* comment
* all required
* classmethod, need to allow subclasses to override _get_params
* fix that
* fix
* fix
* wrong fix 🤦
old-commit-hash: b00bc4f57e
2 years ago
Adeeb Shihadeh
b67646e1ab
Revert "Car interface: require fingerprint and FW versions to get params ( #26766 )"
...
This reverts commit ff80ac0f7525916211da2cd0fce2c9c5f35ef89d.
old-commit-hash: f14deae475
2 years ago
Shane Smiskol
28ceb52c33
Car interface: require fingerprint and FW versions to get params ( #26766 )
...
* require fingerprint and FW versions
* add get_non_essential_params()
* comment
* all required
* classmethod, need to allow subclasses to override _get_params
* fix that
* fix
old-commit-hash: b68dabb689
2 years ago
Shane Smiskol
76e7a45284
controls: preEnabled doesn't consider noEntry ( #26627 )
...
preEnabled doesn't consider noEntry
old-commit-hash: 8ad8d4e1c2
2 years ago
Shane Smiskol
c1b9a202aa
controls: enter overriding state for steering override ( #25617 )
...
* lateral overriding is overriding
* Update test
* remove
* also could do something like this and only have one OVERRIDE ET
* Revert "also could do something like this and only have one OVERRIDE ET"
This reverts commit 5c381641c0
.
* full names
* bump cereal
* test every event type
* update refs
old-commit-hash: 992707c172
3 years ago
Shane Smiskol
bf744c0410
tests: add overriding to state machine test ( #24131 )
...
* add overriding to state machine test
* overriding should consider soft disable too
old-commit-hash: d7a708d6da
3 years ago
Shane Smiskol
8e11fbe2db
controlsd: add state machine tests ( #24107 )
...
* Handle NO_ENTRY in PRE_ENABLED
* add test
* add preEnabled NO_ENTRY test
* stash
* test soft disable
* tuples
* remove overriding until it's merged in
* use Events class
* fix tests and split out
* don't rely on controlsd's counter
old-commit-hash: d4f330447a
3 years ago