diff options
-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" |