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

Commit

Permalink
Switch to pytest
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matthias-bach-by committed Aug 6, 2019
1 parent 22279d1 commit e34211b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ install:
- "pip install -r requirements.txt"
- "pip freeze"
script:
- nosetests
- pytest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pip>7.0
pip-tools>=1.6
nose
pytest
sphinx
6 changes: 1 addition & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e34211b

Please sign in to comment.