Adeeb Shihadeh
c59887c810
test_*.py files are no longer executable ( #32610 )
...
* test_*.py files are no longer executable
* cleanup empty lines
* update precommit
* fixme
* enable
* build
11 months ago
cl0cks4fe
dd9d5d4528
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>
11 months ago
Shane Smiskol
e5107b1eab
debug test_models script fixes ( #32362 )
...
* some things were renamed without checking
* fix that
12 months ago
Justin Newberry
ca5a2ed942
move getting platform to get_params ( #31871 )
...
* better
* string
* not here
1 year ago
Justin Newberry
a919d27afc
fix car test routes typing ( #31773 )
...
* Fix typing
* and fix test_car_model
* fix
1 year ago
Cameron Clough
995250ae49
use pyupgrade to update to new typing syntax ( #31580 )
...
* add pyupgrade hook
* run pyupgrade (pre-commit run -a)
* ruff --fix
* Revert "add pyupgrade hook"
This reverts commit 56ec18bb6b
.
* revert changes to third_party/
* manual type fixes
* explicit Optional wrapping capnp objects
1 year ago
Justin Newberry
e86d74b347
move car porting tools to tools/car_porting ( #30916 )
...
just this for now
1 year ago
Adeeb Shihadeh
a9626f95b6
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
2 years ago
Shane Smiskol
6106876da7
test_car_model: remove duplicate argument ( #29309 )
...
* only need to pass test_route
* unused
2 years ago
Shane Smiskol
50d382884d
test_car_model: allow route or segment name ( #27866 )
...
* allow route or segment name
* fix
* fixes
* fixes
2 years ago
Shane Smiskol
19810f2dcc
Silence a PytestCollectionWarning ( #25537 )
...
Silence PytestCollectionWarning: cannot collect test class 'TestRoute' because it has a __new__ constructor (from: test_models.py)
3 years ago
Shane Smiskol
e5b189416d
test_models: support for running on any route ( #24002 )
...
* run test_models on route
* clean up a bit
clean up a bit
clean up a bit
* remove
remove
* make route positional
* fixes from merge
* not working as I expected
* finally working, easiest way seems to make a new subclass dynamically
* bring back routes
* remove comments
* revert skiptest
* fix subclass name
* car first
* this should be here...
* this should work
* comment
* pytest doesn't support dynamically loading with load_tests
* minimize test_models.py diff, and make new file for running on a route
* fix static analysis
* remove print
* clean up a tiny bit
* rename and make required
* auto detect car fingerprint if not given
* move to location that makes more sense
* Add ci argument for running route from routes.py
3 years ago