Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
Show All 11 Lines | commands = | ||||
# down), and the swh.provenance rabbitmq storage server fixture (which is | # down), and the swh.provenance rabbitmq storage server fixture (which is | ||||
# brought up by multiprocessing within the pytest runner context) poorly | # brought up by multiprocessing within the pytest runner context) poorly | ||||
# interact, causing the Python interpreter to SIGABRT. | # interact, causing the Python interpreter to SIGABRT. | ||||
# Running the tests for the journal client separately from the rest allow to | # Running the tests for the journal client separately from the rest allow to | ||||
# isolate the fixtures from one another and lets the tests run to completion. | # isolate the fixtures from one another and lets the tests run to completion. | ||||
pytest {envsitepackagesdir}/swh/provenance \ | pytest {envsitepackagesdir}/swh/provenance \ | ||||
--cov={envsitepackagesdir}/swh/provenance \ | --cov={envsitepackagesdir}/swh/provenance \ | ||||
--cov-branch \ | --cov-branch \ | ||||
-k 'journal' {posargs} | -m kafka {posargs} | ||||
pytest --doctest-modules \ | pytest --doctest-modules \ | ||||
{envsitepackagesdir}/swh/provenance \ | {envsitepackagesdir}/swh/provenance \ | ||||
--cov={envsitepackagesdir}/swh/provenance \ | --cov={envsitepackagesdir}/swh/provenance \ | ||||
--cov-branch --cov-append \ | --cov-branch --cov-append \ | ||||
-k 'not journal' {posargs} | -m 'not kafka' {posargs} | ||||
passenv = HOME # required by pytest-rabbitmq | passenv = HOME # required by pytest-rabbitmq | ||||
[testenv:black] | [testenv:black] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
black==22.3.0 | black==22.3.0 | ||||
commands = | commands = | ||||
{envpython} -m black --check swh | {envpython} -m black --check swh | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |