Add pytest configs

This commit is contained in:
Roman Mogylatov 2021-10-12 11:49:50 -04:00
parent f68069e99f
commit 23c145124f
4 changed files with 14 additions and 9 deletions

View File

@ -0,0 +1,3 @@
[pytest]
testpaths = tests/unit
python_files = test_*_py2_py3.py

View File

@ -0,0 +1,3 @@
[pytest]
testpaths = tests/unit
python_files = test_*_py3.py

View File

@ -0,0 +1,3 @@
[pytest]
testpaths = tests/unit
python_files = test_*_py3*.py

14
tox.ini
View File

@ -2,9 +2,6 @@
envlist= envlist=
coveralls, pylint, flake8, pydocstyle, 2.7, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2, pypy3 coveralls, pylint, flake8, pydocstyle, 2.7, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2, pypy3
[pytest]
testpaths = tests/unit
[testenv] [testenv]
deps= deps=
pytest pytest
@ -21,7 +18,7 @@ extras=
pydantic pydantic
flask flask
aiohttp aiohttp
commands = pytest commands = pytest -c tests/.configs/pytest.ini
python_files = test_*_py3*.py python_files = test_*_py3*.py
[testenv:coveralls] [testenv:coveralls]
@ -45,8 +42,7 @@ deps=
extras= extras=
yaml yaml
flask flask
commands = pytest commands = pytest -c tests/.configs/py27.ini
python_files = test_*_py2_py3.py
[testenv:3.5] [testenv:3.5]
deps= deps=
@ -55,7 +51,7 @@ deps=
extras= extras=
yaml yaml
flask flask
python_files = test_*_py3.py commands = pytest -c tests/.configs/pytest-py34-py35.ini
[testenv:pypy2] [testenv:pypy2]
deps= deps=
@ -63,7 +59,7 @@ deps=
extras= extras=
yaml yaml
flask flask
python_files = test_*_py2_py3.py commands = pytest -c tests/.configs/py27.ini
[testenv:pypy3] [testenv:pypy3]
deps= deps=
@ -75,7 +71,7 @@ deps=
extras= extras=
yaml yaml
flask flask
python_files = test_*_py2_py3.py commands = pytest -c tests/.configs/py27.ini
[testenv:pylint] [testenv:pylint]