[PATCH 2 of 6 signedrequest] [tox] Use pytest

Denis Laxalde denis.laxalde at logilab.fr
Fri Jun 1 12:28:33 CEST 2018


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1527845286 -7200
#      Fri Jun 01 11:28:06 2018 +0200
# Node ID 7433e6bba8089e688f49e3c176305c6346df6d0a
# Parent  5aab89033d955ba7a72468ef0bb63e3e4c68eca8
# Available At http://hg.logilab.org/review/cubes/signedrequest
#              hg pull http://hg.logilab.org/review/cubes/signedrequest -r 7433e6bba808
# EXP-Topic py3
[tox] Use pytest

Same test count after/before (28).

diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -4,5 +4,11 @@ envlist = py27
 [testenv]
 deps =
   webtest
+  pytest
 commands =
-  {envpython} -m unittest discover -s test -p '*test_*.py' -b {posargs}
+  {envpython} -m pytest {posargs:--verbose}
+
+[pytest]
+python_files = *test_*.py
+testpaths = test
+addopts = -r fEs


More information about the cubicweb-devel mailing list