diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2020-02-02 23:24:28 -0800 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2020-04-16 22:54:29 -0700 |
commit | 1de48d6677cfde87a11fdfc14465cd98a37fc0cf (patch) | |
tree | 80ba149469f7ce48da05b24358c242bb0b0ea68e | |
parent | 3de5fdee7c04c1f4a799e3e13b4fb8d646d32a94 (diff) | |
download | waitress-1de48d6677cfde87a11fdfc14465cd98a37fc0cf.tar.gz |
Switch to pytest from nosetests
-rw-r--r-- | setup.cfg | 17 | ||||
-rw-r--r-- | tox.ini | 2 |
2 files changed, 10 insertions, 9 deletions
@@ -46,7 +46,8 @@ where=src [options.extras_require] testing = - nose + pytest + pytest-cover coverage>=5.0 docs = @@ -54,13 +55,13 @@ docs = docutils pylons-sphinx-themes>=1.0.9 -[nosetests] -match=^test -nocapture=1 -cover-package=waitress -cover-erase=1 - [bdist_wheel] universal = 1 - +[tool:pytest] +python_files = test_*.py +# For the benefit of test_wasyncore.py +python_classes = Test_* +testpaths = + tests +addopts = -W always --cov --cov-report=term-missing @@ -10,7 +10,7 @@ isolated_build = True [testenv] commands = python --version - nosetests {posargs:} + pytest {posargs:} extras = testing setenv = |