diff --git a/docs/source/testing.rst b/docs/source/testing.rst index 2d3830cc..01b6788a 100644 --- a/docs/source/testing.rst +++ b/docs/source/testing.rst @@ -11,11 +11,7 @@ just setup ``tox`` and run it inside the toplevel project directory:: To run a single test inside a specific Python environment, do e.g.:: - tox -e py27 tests/test_validation.py:TestServiceDefinition.test_content_type_missing - -or:: - - tox -e py27 tests.test_validation:TestServiceDefinition.test_content_type_missing + tox -e py39 tests/test_validation.py::TestServiceDefinition::test_content_type_missing Testing cornice services diff --git a/tox.ini b/tox.ini index 87d483a8..d2412e07 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ skip_missing_interpreters = True [testenv] commands = python --version - pytest tests --cov-report term-missing --cov-fail-under 100 --cov cornice {posargs} + pytest {posargs: --cov-report term-missing --cov-fail-under 100 --cov cornice} deps = -rtests/requirements.txt install_command = pip install --pre {opts} {packages} @@ -19,7 +19,7 @@ deps = install_command = pip install --pre {opts} {packages} commands = python --version - py.test {posargs} + pytest {posargs} [testenv:flake8] commands = flake8 cornice