summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2020-02-02 23:24:28 -0800
committerBert JW Regeer <bertjw@regeer.org>2020-04-16 22:54:29 -0700
commit1de48d6677cfde87a11fdfc14465cd98a37fc0cf (patch)
tree80ba149469f7ce48da05b24358c242bb0b0ea68e
parent3de5fdee7c04c1f4a799e3e13b4fb8d646d32a94 (diff)
downloadwaitress-1de48d6677cfde87a11fdfc14465cd98a37fc0cf.tar.gz
Switch to pytest from nosetests
-rw-r--r--setup.cfg17
-rw-r--r--tox.ini2
2 files changed, 10 insertions, 9 deletions
diff --git a/setup.cfg b/setup.cfg
index ac1ceb8..77afa15 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -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
diff --git a/tox.ini b/tox.ini
index 04ca1d5..8db0f88 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,7 +10,7 @@ isolated_build = True
[testenv]
commands =
python --version
- nosetests {posargs:}
+ pytest {posargs:}
extras =
testing
setenv =