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=
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]