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.
This commit is contained in:
Antoine Lambert 2024-03-13 10:58:03 +01:00
parent 329cb2e44a
commit b083b4f1f9
2 changed files with 2 additions and 2 deletions

View file

@ -3,6 +3,6 @@ addopts =
# we need this to avoid conflicts between the autoloaded fixture,
# and the manually loaded one.
-p no:pytest_swh_scheduler
--import-mode=importlib
norecursedirs = build docs .*
asyncio_mode = strict
consider_namespace_packages = true

View file

@ -1,5 +1,5 @@
pandas
pytest
pytest >= 8.1
pytest-mock
requests_mock
swh-scheduler[testing]