forked from City-of-Helsinki/parkkihubi
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using Tox for running the tests allows a bit cleaner setup and makes it possible to run all the same test environments locally too.
- Loading branch information
1 parent
0e43f54
commit 46b512e
Showing
5 changed files
with
51 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ django-extensions | |
ipython | ||
isort | ||
pydocstyle | ||
tox | ||
werkzeug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[tox] | ||
envlist = py{34,35,36},requirements,style | ||
skipsdist = True | ||
|
||
[testenv] | ||
deps = | ||
-rrequirements.txt | ||
-rrequirements-test.txt | ||
passenv = CI | ||
setenv = | ||
DEBUG=0 | ||
SECRET_KEY=topsecret123 | ||
commands = py.test -ra -vvv --strict --cov {posargs} | ||
|
||
[testenv:requirements] | ||
basepython = python3.4 | ||
deps = prequ==1.3.1 | ||
commands = prequ check -v | ||
|
||
[testenv:style] | ||
basepython = python3.4 | ||
deps = -rrequirements-test.txt | ||
commands = flake8 {posargs} |