]> git.phdru.name Git - cookiecutter.git/blobdiff - project_template/tox.ini
Simplify tox.ini: call pytest with the current python
[cookiecutter.git] / project_template / tox.ini
index 01864e43514bed20d5b147e05819b72f139af044..700cac6b8afed833bf9600eaeb013aa944e4fb33 100644 (file)
@@ -14,11 +14,10 @@ sitepackages = True
 # Don't fail or warn on uninstalled commands
 whitelist_externals =
     flake8
-    py.test
 
 [general]
 commands =
-    python /usr/local/bin/py.test --cov={envsitepackagesdir}/project
+    python -m pytest --cov={project}
 
 [testenv:py26]
 commands = {[general]commands}
@@ -32,9 +31,9 @@ commands = {[general]commands}
 [testenv:py27-flake8]
 deps =
     flake8
-commands = flake8 project scripts tests
+commands = flake8 {project} scripts tests
 
 [testenv:py34-flake8]
 deps =
     flake8
-commands = flake8 project scripts tests
+commands = flake8 {project} scripts tests