[PATCH 4 of 4 compound] [pkg] Use pytest

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Mar 1 10:56:55 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1488361919 -3600
#      Wed Mar 01 10:51:59 2017 +0100
# Node ID e5b0f3f021c07a8b12115f1b634e811b611ac28a
# Parent  fe2aeaad1cae3c191d478f77a7e6b359d5ef76cf
[pkg] Use pytest

diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -1,12 +1,12 @@
 [tox]
 envlist = py27,flake8
 
 [testenv]
 sitepackages = True
-commands =
-  {envpython} -m unittest discover -s test -b
+deps = pytest
+commands = {envpython} -m pytest {posargs:{toxinidir}/test}
 
 [testenv:flake8]
 skip_install = true
 whitelist_externals =
   flake8


More information about the saem-devel mailing list