From e34211b6f96310f750cf7261ece3a6ccfc752933 Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Tue, 6 Aug 2019 13:50:12 +0200 Subject: [PATCH] Switch to pytest This is just a basic switch. No actual test code has been modified. Besides avoiding the now-dead nose project, the major benefit of this is the TestServer class not being reported as a test for each test module. --- .travis.yml | 2 +- README.md | 2 +- requirements_dev.txt | 2 +- setup.py | 6 +----- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index fca1cd7..816d8d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,4 @@ install: - "pip install -r requirements.txt" - "pip freeze" script: - - nosetests + - pytest diff --git a/README.md b/README.md index ee20872..7621716 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ How to run the tests Run the tests - nosetests + pytest Travis runs the tests without LDAP support. If you want to enable them (as we do internally to check against our own LDAP server), replace the configuration in diff --git a/requirements_dev.txt b/requirements_dev.txt index 290f280..133a8d7 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,4 +1,4 @@ pip>7.0 pip-tools>=1.6 -nose +pytest sphinx diff --git a/setup.py b/setup.py index 27ffe21..b6b970e 100644 --- a/setup.py +++ b/setup.py @@ -16,13 +16,9 @@ 'devpi-plumber', 'devpi-ldap' ], - setup_requires=[ - 'nose' - ], tests_require=[ - 'nose' + 'pytest' ], - test_suite='nose.collector', classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console',