Allow pytest discovery to find and run Python tests#30361
Allow pytest discovery to find and run Python tests#30361cclauss wants to merge 1 commit intoArduPilot:masterfrom
Conversation
|
Just a note that upgrading numpy won't necessarily kill in-tree tools, but most definitely kills MAVProxy which is usually run in the same venv. This does suck. |
12dc8e9 to
73cbc49
Compare
2fe57b3 to
f2ff909
Compare
|
Status:
|
fe09429 to
2f29dd3
Compare
2f29dd3 to
8117a1d
Compare
65fb090 to
3be54b8
Compare
|
Based on the "too wildcardy" discussion in today's EU dev call, we should stop using testpaths = [
"tests",
"Tools/autotest/unittest",
"Tools/scripts",
]Also, |
3be54b8 to
4f889cc
Compare
|
df8ef02 to
7e9e98b
Compare
|
59 passed in 2.83s -- Ready for review. Can a repo maintainer please rerun the failing test? |
* ArduPilot#30292 says that dependencies are being pinned to out-of-date versions. Let's use pytest discover to see which Python tests will be found and see what dependencies they require, and if they will pass with the current versions of those dependencies. https://docs.pytest.org/en/stable/explanation/goodpractices.html#conventions-for-python-test-discovery
7e9e98b to
035f015
Compare
https://docs.pytest.org/en/stable/explanation/goodpractices.html#conventions-for-python-test-discovery
Test results: https://github.com/ArduPilot/ardupilot/actions/runs/16271173917/job/45938928611?pr=30361
%
pytest --config-file=tests/pytest-whole-repo.toml