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:
parent
329cb2e44a
commit
b083b4f1f9
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
pandas
|
||||
pytest
|
||||
pytest >= 8.1
|
||||
pytest-mock
|
||||
requests_mock
|
||||
swh-scheduler[testing]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue