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

pytest.ini: Ensure '--import-mode importlib' option is always used

Fix hanging test when executed outside tox.
parent c2402f40
No related branches found
No related tags found
No related merge requests found
Pipeline #5814 passed
[pytest]
# We need this to avoid conflicts between the autoloaded fixture, and the
# manually loaded one.
addopts = -p no:pytest_swh_scheduler
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
......@@ -13,7 +13,6 @@ deps =
pytest-cov
commands =
pytest --doctest-modules \
--import-mode importlib \
--rootdir {envsitepackagesdir} \
--cov={envsitepackagesdir}/swh/lister \
--cov-branch \
......
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