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]