pytest.ini: Ensure '--import-mode importlib' option is always used
Fix hanging test when executed outside tox.
This commit is contained in:
parent
c2402f405f
commit
e4c707d807
2 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,9 @@
|
|||
[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
|
||||
|
|
1
tox.ini
1
tox.ini
|
@ -13,7 +13,6 @@ deps =
|
|||
pytest-cov
|
||||
commands =
|
||||
pytest --doctest-modules \
|
||||
--import-mode importlib \
|
||||
--rootdir {envsitepackagesdir} \
|
||||
--cov={envsitepackagesdir}/swh/lister \
|
||||
--cov-branch \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue