Revision c2ccf460f5528fda8964ad3c0e35096da9175ce2 authored by David Douard on 16 October 2019, 08:43:03 UTC, committed by David Douard on 16 October 2019, 11:20:42 UTC
The way the scheduler_db and updater_db fixtures are built is not very straighforward nor satisfying, but it works.
1 parent 37b909e
tox.ini
[tox]
envlist=flake8,mypy,py3
[testenv:py3]
deps =
.[testing]
pytest-cov
pifpaf
setenv =
LC_ALL=C.UTF-8
LC_CTYPE=C.UTF-8
LANG=C.UTF-8
commands =
pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=fast \
--cov={envsitepackagesdir}/swh/scheduler \
{envsitepackagesdir}/swh/scheduler \
--cov-branch {posargs}
[testenv:py3-slow]
deps =
.[testing]
pytest-cov
pifpaf
commands =
pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=slow \
--cov={envsitepackagesdir}/swh/scheduler \
{envsitepackagesdir}/swh/scheduler \
--cov-branch {posargs}
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
{envpython} -m flake8
[testenv:mypy]
skip_install = true
deps =
.[testing]
mypy
commands =
mypy swh
Computing file changes ...