Skip to content
Snippets Groups Projects

tox.ini: use "develop" mode for test environment installation

Merged Nicolas Dandrimont requested to merge olasd/swh-py-template:mr/tox-usedevelop into master
1 file
+ 3
6
Compare changes
  • Side-by-side
  • Inline
@@ -7,20 +7,17 @@ envlist =
py3
[testenv]
usedevelop = true
extras =
testing
deps =
pytest-cov
commands =
pytest --doctest-modules \
--rootdir {envsitepackagesdir} \
--cov={envsitepackagesdir}/{{ package_root }} \
--cov={{ package_root }} \
--cov-branch \
{envsitepackagesdir}/{{ package_root }} \
{{ package_root }} \
{posargs}
# --rootdir (with --import-mode from pytest.ini) are required to make tests
# that depends on the test file to be a proper submodule of the swh namespace
# after migration to PEP420 (implicit namespace).
[testenv:black]
skip_install = true
Loading