Configure pytest to look for tests in "test" directory
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 14 Nov 2018 10:20:06 +0100
changeset 379 4cc7638ff93c
parent 378 90ff750849f9
child 380 2d4da59dc82b
Configure pytest to look for tests in "test" directory Thus avoiding default value of posargs in tox's test environment.
tox.ini
--- a/tox.ini	Wed Nov 14 10:19:25 2018 +0100
+++ b/tox.ini	Wed Nov 14 10:20:06 2018 +0100
@@ -6,7 +6,7 @@
   pytest
   https://hg.logilab.org/master/cubes/sioc/archive/default.tar.bz2
 commands =
-  {envpython} -m pytest {posargs:test}
+  {envpython} -m pytest {posargs}
 
 [testenv:flake8]
 skip_install = true
@@ -28,3 +28,4 @@
 
 [pytest]
 python_files = *test_*.py
+testpaths = test