summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Captier <florent@captier.org>2018-12-16 14:30:51 +0100
committerFlorent Captier <florent@captier.org>2018-12-16 15:01:23 +0100
commit4bd39a770ce48d94ab8914463e20e9002e0b4869 (patch)
tree82cf3133bc5e825a5d88e678db39713146be3c55
parent8aca902011981a236cedf32d0c859078c7881b71 (diff)
downloadoauthlib-4bd39a770ce48d94ab8914463e20e9002e0b4869.tar.gz
Use pytest as test framework
Closes #631
-rw-r--r--docs/contributing.rst4
-rw-r--r--requirements-test.txt3
-rw-r--r--tox.ini3
3 files changed, 5 insertions, 5 deletions
diff --git a/docs/contributing.rst b/docs/contributing.rst
index 771262d..e101f70 100644
--- a/docs/contributing.rst
+++ b/docs/contributing.rst
@@ -144,7 +144,7 @@ the project root via:
.. sourcecode:: bash
- $ python -m unittest discover
+ $ py.test
The first thing the core committers will do is run this command. Any pull
request that fails this test suite will be **rejected**.
@@ -301,7 +301,7 @@ First we pull the code into a local branch::
Then we run the tests::
- python -m unittest discover
+ py.test
We finish with a non-fastforward merge (to preserve the branch history) and push
to GitHub::
diff --git a/requirements-test.txt b/requirements-test.txt
index c3e0a7b..64485a6 100644
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -1,3 +1,4 @@
-r requirements.txt
-coverage>=3.7.1
mock>=2.0
+pytest>=4.0
+pytest-cov>=2.6
diff --git a/tox.ini b/tox.ini
index 47237d8..05f12a6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,8 +5,7 @@ envlist = py27,py34,py35,py36,py37,pypy,pypy3,docs,readme
deps=
-rrequirements-test.txt
commands=
- coverage run --source oauthlib -m unittest discover
- coverage report
+ py.test --cov=oauthlib tests/
# tox -e docs to mimick readthedocs build.