summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Langner <tds333@mailbox.org>2019-01-22 01:39:43 +0100
committerSelwin Ong <selwin.ong@gmail.com>2019-01-22 07:39:43 +0700
commit972778d041862ee218880affccb7ef54e6cd7634 (patch)
treef5c66af4a879bb938f9cd41cc21a7bae6bc83d24
parent7893168c877fd76c4ac8fb9bf1c14f044ed2a0f2 (diff)
downloadrq-972778d041862ee218880affccb7ef54e6cd7634.tar.gz
Fix run_tests to use pytest. (#1033)
Update tox.ini envlist.
-rwxr-xr-xrun_tests4
-rw-r--r--tox.ini13
2 files changed, 5 insertions, 12 deletions
diff --git a/run_tests b/run_tests
index 3b454d1..a478ed7 100755
--- a/run_tests
+++ b/run_tests
@@ -26,7 +26,7 @@ fi
# For use on build server, we need exit code to be representative of success/failure
if [ "$1" = '-x' ]; then
shift 1
- /usr/bin/env python -m unittest discover -v -s tests $@ 2>&1
+ /usr/bin/env python -m pytest -v tests $@ 2>&1
else
- /usr/bin/env python -m unittest discover -v -s tests $@ 2>&1 | egrep -v '^test_' | $safe_rg
+ /usr/bin/env python -m pytest -v tests $@ 2>&1 | egrep -v '^test_' | $safe_rg
fi
diff --git a/tox.ini b/tox.ini
index baeba93..b1d2ed7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,22 +1,15 @@
[tox]
-envlist=py26,py27,py33,py34,py35,py36,py37,pypy,flake8
+envlist=py27,py34,py35,py36,py37,pypy,flake8
[testenv]
-commands=py.test --cov rq --durations=5 {posargs}
+commands=pytest --cov rq --durations=5 {posargs}
deps=
pytest
pytest-cov
mock
-[testenv:py26]
-deps=
- pytest
- pytest-cov
- unittest2
- mock
-
[testenv:flake8]
-basepython = python2.7
+basepython = python3.6
deps =
flake8
commands =