From 1de48d6677cfde87a11fdfc14465cd98a37fc0cf Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Sun, 2 Feb 2020 23:24:28 -0800 Subject: Switch to pytest from nosetests --- setup.cfg | 17 +++++++++-------- tox.ini | 2 +- 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 = -- cgit v1.2.1