Parcourir la source

Pass posargs to pytest in main testenv

Luke Murphy il y a 6 ans
Parent
commit
917a0dd0a0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      tox.ini

+ 1 - 1
tox.ini

@@ -15,7 +15,7 @@ install_command =
 commands_pre =
 commands_pre =
     find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete
     find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete
 commands =
 commands =
-    pytest
+    pytest {posargs}
     py36,py37: black --check .
     py36,py37: black --check .
     isort --recursive --check-only --settings-path setup.cfg .
     isort --recursive --check-only --settings-path setup.cfg .
     flake8 .
     flake8 .