diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-14 16:17:25 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-14 16:25:07 -0700 |
commit | 037453c6f92b502eaae2acafe11161e4bb2e38bb (patch) | |
tree | eeec102d494c217738ba24796fa9b708210d7b98 | |
parent | a0f38f71cb8764bbff8dd2cdac5031a09086665e (diff) | |
download | oauthlib-037453c6f92b502eaae2acafe11161e4bb2e38bb.tar.gz |
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.
-rw-r--r-- | requirements-test.txt | 1 | ||||
-rwxr-xr-x | setup.py | 3 | ||||
-rw-r--r-- | tox.ini | 5 |
3 files changed, 5 insertions, 4 deletions
diff --git a/requirements-test.txt b/requirements-test.txt index 5bf6e06..c3e0a7b 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,4 +1,3 @@ -r requirements.txt coverage>=3.7.1 -nose==1.3.7 mock>=2.0 @@ -18,7 +18,7 @@ def fread(fn): with open(join(dirname(__file__), fn), 'r') as f: return f.read() -tests_require = ['nose', 'cryptography', 'pyjwt>=1.0.0', 'blinker'] +tests_require = ['cryptography', 'pyjwt>=1.0.0', 'blinker'] if sys.version_info[0] == 2: tests_require.append('mock>=2.0') rsa_require = ['cryptography'] @@ -40,7 +40,6 @@ setup( platforms='any', license='BSD', packages=find_packages(exclude=('docs', 'tests', 'tests.*')), - test_suite='nose.collector', tests_require=tests_require, extras_require={ 'test': tests_require, @@ -4,7 +4,10 @@ envlist = py27,py34,py35,py36,pypy,docs,readme [testenv] deps= -rrequirements-test.txt -commands=nosetests -s --with-coverage --cover-html --cover-html-dir={toxinidir}/htmlcov-{envname} --cover-erase --cover-package=oauthlib -w tests +commands= + coverage run --source oauthlib -m unittest discover + coverage report + # tox -e docs to mimick readthedocs build. # as of today, RTD is using python2.7 and doesn't run "setup.py install" |