[PATCH 09 of 10 logilab-database] [tox] Use unittest discover

Denis Laxalde denis.laxalde at logilab.fr
Mon Jun 4 12:00:24 CEST 2018


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1528104502 -7200
#      Mon Jun 04 11:28:22 2018 +0200
# Node ID 8de0ea17b6695dff9e5cb9d340a26ab208a33a3c
# Parent  2db9072b1c9a9c8df551a4f778942ff5ec003b44
# Available At https://hg.logilab.org/review/logilab/database
#              hg pull https://hg.logilab.org/review/logilab/database -r 8de0ea17b669
# EXP-Topic py3
[tox] Use unittest discover

Could not get pytest working, so fall back to unittest discover, still
better than lgc's pytest.

diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -5,4 +5,4 @@ envlist=py27,py3
 deps =
   psycopg2
 commands=
-    logilab-pytest -t test {posargs}
+    {envpython} -m unittest discover -s test {posargs:-p unittest_*.py}


More information about the cubicweb-devel mailing list