Skip to content

Commit

Permalink
Fix pytest2 executable
Browse files Browse the repository at this point in the history
Back in the days, they called it `py.test`. That was cool but now it's
annoying to me.
  • Loading branch information
ipwnponies committed Jan 29, 2022
1 parent b9512dd commit f24a3e8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ commands =
coverage report --fail-under 100 --include 'tests/*' --omit 'tests/main_py38_test.py'

# Run in reverse order, just in case
pytest tests/main_test.py::test_b_run_second tests/main_test.py::test_a_run_first
coverage run -m pytest tests/main_test.py::test_b_run_second tests/main_test.py::test_a_run_first

[testenv:py{38,39}-pytest{3,4,5,6,7}]
deps =
{[testenv]deps}
commands =
coverage run -m pytest tests/main_test.py::test_a_run_first tests/main_test.py::test_b_run_second
coverage run -m pytest tests/main_py38_test.py::test_a_run_first tests/main_py38_test.py::test_b_run_second
Expand All @@ -41,17 +39,11 @@ commands =


[testenv:py{36,37}-pytest7]
deps=
{[testenv]deps}
setenv =
PRAGMA_VERSION = lt_py38

[testenv:py{35,36,37}-pytest{2,3,4,5,6}]
deps=
{[testenv]deps}
setenv =
pytest2: PYTEST_CMD = py.test
!pytest2: PYTEST_CMD = pytest
PRAGMA_VERSION = lt_py38

[testenv:py{27}-{backports,functools32}-pytest{2,3,4}]
Expand All @@ -61,8 +53,6 @@ deps =
backports: backports.functools_lru_cache
functools32: functools32
setenv =
pytest2: PYTEST_CMD = py.test
!pytest2: PYTEST_CMD = pytest
PRAGMA_VERSION = lt_py38

[testenv:project_tests]
Expand Down

0 comments on commit f24a3e8

Please sign in to comment.