[PATCH 04 of 10 logilab-database] [tox] Use "logilab-pytest" as test runner

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


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1528102098 -7200
#      Mon Jun 04 10:48:18 2018 +0200
# Node ID 0d74e46786b465d329ccbe7bec9597c0bca43c5b
# Parent  d62581228272e35db2b93d66e0e76dd6c7d435c0
# Available At https://hg.logilab.org/review/logilab/database
#              hg pull https://hg.logilab.org/review/logilab/database -r 0d74e46786b4
# EXP-Topic py3
[tox] Use "logilab-pytest" as test runner

In logilab-common, pytest executable got renamed as logilab-pytest.
Until we get rid of lgc, at least use the proper executable name.

Handle posargs along the way.

diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -4,4 +4,5 @@ envlist=py27,py3
 [testenv]
 deps =
   psycopg2
-commands=pytest -t test
+commands=
+    logilab-pytest -t test {posargs}


More information about the cubicweb-devel mailing list