From b6ee47e6827ed5f2c96c2a19cf1071769fa9a0e3 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Tue, 12 Oct 2021 11:26:09 -0400 Subject: [PATCH] Update tox.ini --- tox.ini | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/tox.ini b/tox.ini index e3e44ed3..941dd41b 100644 --- a/tox.ini +++ b/tox.ini @@ -17,8 +17,8 @@ extras= pydantic flask aiohttp -commands= - python -m unittest discover -s tests/unit -p test_*_py3*.py +commands = pytest +python_files = test_*_py3*.py [testenv:coveralls] passenv = GITHUB_* COVERALLS_* @@ -31,7 +31,7 @@ deps= coveralls commands= coverage erase - coverage run --rcfile=./.coveragerc -m unittest discover -s tests/unit/ -p test_*_py3*.py + coverage run --rcfile=./.coveragerc -m pytest coverage report --rcfile=./.coveragerc coveralls @@ -40,8 +40,8 @@ deps= extras= yaml flask -commands= - python -m unittest discover -s tests/unit -p test_*_py2_py3.py +commands = pytest +python_files = test_*_py2_py3.py [testenv:3.5] deps= @@ -49,16 +49,14 @@ deps= extras= yaml flask -commands= - python -m unittest discover -s tests/unit -p test_*_py3.py +python_files = test_*_py3.py [testenv:pypy2] deps= extras= yaml flask -commands= - python -m unittest discover -s tests/unit -p test_*_py2_py3.py +python_files = test_*_py2_py3.py [testenv:pypy3] deps= @@ -69,8 +67,7 @@ deps= extras= yaml flask -commands= - python -m unittest discover -s tests/unit -p test_*_py2_py3.py +python_files = test_*_py2_py3.py [testenv:pylint]