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

View File

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