Skip to content

Commit 037453c

Browse files
committed
Remove unmaintained nose dependency from tests
The nose project has ceased development. From their docs page: https://nose.readthedocs.io/ > Note to Users > > Nose has been in maintenance mode for the past several years and will > likely cease without a new person/team to take over maintainership. > New projects should consider using Nose2, py.test, or just plain > unittest/unittest2. Simplify test infrastructure by using the stdlib unittest discover command. One fewer dependency.
1 parent a0f38f7 commit 037453c

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

requirements-test.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
-r requirements.txt
22
coverage>=3.7.1
3-
nose==1.3.7
43
mock>=2.0

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def fread(fn):
1818
with open(join(dirname(__file__), fn), 'r') as f:
1919
return f.read()
2020

21-
tests_require = ['nose', 'cryptography', 'pyjwt>=1.0.0', 'blinker']
21+
tests_require = ['cryptography', 'pyjwt>=1.0.0', 'blinker']
2222
if sys.version_info[0] == 2:
2323
tests_require.append('mock>=2.0')
2424
rsa_require = ['cryptography']
@@ -40,7 +40,6 @@ def fread(fn):
4040
platforms='any',
4141
license='BSD',
4242
packages=find_packages(exclude=('docs', 'tests', 'tests.*')),
43-
test_suite='nose.collector',
4443
tests_require=tests_require,
4544
extras_require={
4645
'test': tests_require,

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ envlist = py27,py34,py35,py36,pypy,docs,readme
44
[testenv]
55
deps=
66
-rrequirements-test.txt
7-
commands=nosetests -s --with-coverage --cover-html --cover-html-dir={toxinidir}/htmlcov-{envname} --cover-erase --cover-package=oauthlib -w tests
7+
commands=
8+
coverage run --source oauthlib -m unittest discover
9+
coverage report
10+
811

912
# tox -e docs to mimick readthedocs build.
1013
# as of today, RTD is using python2.7 and doesn't run "setup.py install"

0 commit comments

Comments
 (0)