Skip to content
Snippets Groups Projects
Commit b083b4f1 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

pytest: Fix tests execution with pytest 8.1

Remove use of --import-mode=importlib pytest option and use
new option consider_namespace_packages to fix tests execution
with latest pytest release.
parent 329cb2e4
No related branches found
No related tags found
1 merge request!522pytest: Fix tests execution with pytest 8.1
Pipeline #7646 passed
...@@ -3,6 +3,6 @@ addopts = ...@@ -3,6 +3,6 @@ addopts =
# we need this to avoid conflicts between the autoloaded fixture, # we need this to avoid conflicts between the autoloaded fixture,
# and the manually loaded one. # and the manually loaded one.
-p no:pytest_swh_scheduler -p no:pytest_swh_scheduler
--import-mode=importlib
norecursedirs = build docs .* norecursedirs = build docs .*
asyncio_mode = strict asyncio_mode = strict
consider_namespace_packages = true
pandas pandas
pytest pytest >= 8.1
pytest-mock pytest-mock
requests_mock requests_mock
swh-scheduler[testing] swh-scheduler[testing]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment