Use pytest directly incl. support for posargs, e.g.:

tox -- -s -vvv tests/path/to/a/single/test_something.py

Signed-off-by: Filip Valder <fvalder@redhat.com>
This commit is contained in:
Filip Valder 2021-08-12 16:35:47 +02:00
parent a7c111643d
commit efff2c9504
1 changed files with 1 additions and 2 deletions

View File

@ -40,11 +40,10 @@ deps =
-rtest-requirements.txt
whitelist_externals =
sh
make
commands =
sh -c 'find . -name "__pycache__" -exec rm -rf \{\} +'
pip install --force-reinstall pytest mock
make test
pytest {posargs}
[flake8]
exclude = doc/*,*.pyc,*.py~,*.in,*.spec,*.sh,*.rst