diff --git a/tests/.configs/pytest-py27.ini b/tests/.configs/pytest-py27.ini new file mode 100644 index 00000000..39b798f9 --- /dev/null +++ b/tests/.configs/pytest-py27.ini @@ -0,0 +1,3 @@ +[pytest] +testpaths = tests/unit +python_files = test_*_py2_py3.py diff --git a/tests/.configs/pytest-py34-py35.ini b/tests/.configs/pytest-py34-py35.ini new file mode 100644 index 00000000..90a4557a --- /dev/null +++ b/tests/.configs/pytest-py34-py35.ini @@ -0,0 +1,3 @@ +[pytest] +testpaths = tests/unit +python_files = test_*_py3.py diff --git a/tests/.configs/pytest.ini b/tests/.configs/pytest.ini new file mode 100644 index 00000000..f564c59a --- /dev/null +++ b/tests/.configs/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +testpaths = tests/unit +python_files = test_*_py3*.py diff --git a/tox.ini b/tox.ini index 553cc4fc..8950f60a 100644 --- a/tox.ini +++ b/tox.ini @@ -2,9 +2,6 @@ envlist= coveralls, pylint, flake8, pydocstyle, 2.7, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2, pypy3 -[pytest] -testpaths = tests/unit - [testenv] deps= pytest @@ -21,7 +18,7 @@ extras= pydantic flask aiohttp -commands = pytest +commands = pytest -c tests/.configs/pytest.ini python_files = test_*_py3*.py [testenv:coveralls] @@ -45,8 +42,7 @@ deps= extras= yaml flask -commands = pytest -python_files = test_*_py2_py3.py +commands = pytest -c tests/.configs/py27.ini [testenv:3.5] deps= @@ -55,7 +51,7 @@ deps= extras= yaml flask -python_files = test_*_py3.py +commands = pytest -c tests/.configs/pytest-py34-py35.ini [testenv:pypy2] deps= @@ -63,7 +59,7 @@ deps= extras= yaml flask -python_files = test_*_py2_py3.py +commands = pytest -c tests/.configs/py27.ini [testenv:pypy3] deps= @@ -75,7 +71,7 @@ deps= extras= yaml flask -python_files = test_*_py2_py3.py +commands = pytest -c tests/.configs/py27.ini [testenv:pylint]