summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2018-12-20 13:46:17 +0100
committerGitHub <noreply@github.com>2018-12-20 13:46:17 +0100
commit5d76d02f32b1cdb9af6b9806df907f3802ebb22b (patch)
tree60a7d7460f44b9eeed06535bdbafd4a4d3d14ae0
parente9c6f01bc6f89e6b90f2c9b61e6a9878d5612147 (diff)
parent31461a0cdb47b0826e03c141a30885b9ab1b3dd5 (diff)
downloadoauthlib-5d76d02f32b1cdb9af6b9806df907f3802ebb22b.tar.gz
Merge pull request #632 from florentcpt/631-use-pytest
Use pytest as test framework
-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 4893175..1cac71c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,8 +5,7 @@ envlist = py27,py34,py35,py36,py37,pypy,pypy3,docs,readme,bandit
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.