Skip to content
This repository was archived by the owner on Apr 22, 2021. It is now read-only.

Commit ad17b69

Browse files
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.
1 parent 6f1cfb3 commit ad17b69

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ install:
77
- "pip install -r requirements.txt"
88
- "pip freeze"
99
script:
10-
- nosetests
10+
- pytest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ How to run the tests
1111

1212
Run the tests
1313

14-
nosetests
14+
pytest
1515

1616
Travis runs the tests without LDAP support. If you want to enable them (as we do
1717
internally to check against our own LDAP server), replace the configuration in

requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pip>7.0
22
pip-tools>=1.6
3-
nose
3+
pytest
44
sphinx

setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@
1616
'devpi-plumber',
1717
'devpi-ldap'
1818
],
19-
setup_requires=[
20-
'nose'
21-
],
2219
tests_require=[
23-
'nose'
20+
'pytest'
2421
],
25-
test_suite='nose.collector',
2622
classifiers=[
2723
'Development Status :: 4 - Beta',
2824
'Environment :: Console',

0 commit comments

Comments
 (0)