From 358aed7c311508e56b90b76a90701a634c225892 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 19 May 2019 13:07:18 +0200 Subject: [PATCH 1/2] Allow to only run unit tests with Tox --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index dbf32da0c..c11d168e7 100644 --- a/tox.ini +++ b/tox.ini @@ -25,6 +25,10 @@ basepython = python3.7 commands = black {posargs} . +[testenv:test] +commands = + pytest {posargs} + [testenv:end-to-end] deps = -rtest_requirements.txt commands = From 917a0dd0a0f15109053b2d94af0d4c8b48b6dbfb Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 19 May 2019 23:53:32 +0200 Subject: [PATCH 2/2] Pass posargs to pytest in main testenv --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index c11d168e7..b6d005cbc 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ install_command = commands_pre = find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete commands = - pytest + pytest {posargs} py36,py37: black --check . isort --recursive --check-only --settings-path setup.cfg . flake8 .