From efff2c950456fca81aa9ba4e81415a58f6f6e8ff Mon Sep 17 00:00:00 2001 From: Filip Valder Date: Thu, 12 Aug 2021 16:35:47 +0200 Subject: [PATCH] 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 --- tox.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 96763345..4ba977cf 100644 --- a/tox.ini +++ b/tox.ini @@ -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