Skip to content

Commit

Permalink
pimp pimp pimp
Browse files Browse the repository at this point in the history
  • Loading branch information
Krilivye committed Oct 16, 2016
1 parent db00def commit 6cca2c3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: run integration check
.PHONY: run integration check fullcheck ulticheck env

run:
firefox index.html
Expand All @@ -11,3 +11,9 @@ check:

fullcheck:
.tox/py35/bin/pytest --cov TTT/ -n auto

ulticheck:
.tox/py35/bin/pytest --cov TTT/ -n auto --flake8

env:
source .tox/py35/bin/activate
5 changes: 4 additions & 1 deletion TTT/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ def application(environ, start_response):

to_json = { "result": super_additionneur(_data["param1"], _data["param2"]) }

return werkzeug.Response(json.dumps(to_json), mimetype='application/json')(environ, start_response)
return werkzeug.Response(
json.dumps(to_json),
mimetype='application/json') \
(environ, start_response)
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tox]
envlist = py35
envlist = py27,py35

[testenv]
deps=
pytest
pytest-sugar
pytest-xdist
pytest-cov
pytest-flakes
pytest-flake8
webtest
commands=pytest --cov TTT/ -n auto -q --flakes
commands=pytest --cov TTT/ -n auto --flake8

0 comments on commit 6cca2c3

Please sign in to comment.