Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tox.ini

Issue 29345468: Issue 4045 - Add Test Suite To CMS (Closed)
Patch Set: Adds flake8 run to tests dir Created Aug. 21, 2016, 2:36 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tox.ini
===================================================================
--- a/tox.ini
+++ b/tox.ini
@@ -7,16 +7,24 @@
cms/bin/generate_static_pages.py : A107,A301,A302,E501
cms/bin/test_server.py : A101,A107,A302,E501,F401
cms/bin/translate.py : A107,A301,A302,E501,F821
cms/converters.py : A107,A108,A201,A206,A302,E501,E711,N802
cms/sources.py : A104,A107,A108,A206,A302,E501
cms/utils.py : A107,A302,E501
[testenv]
+setenv =
+ PYTHONPATH = {toxinidir}
+
deps =
+ pytest
+ jinja2
+ markdown
flake8
flake8-putty
pep8-naming
hg+https://hg.adblockplus.org/codingtools#egg=flake8-abp&subdirectory=flake8-abp
+
commands =
- flake8 cms runserver.py
+ py.test tests
+ flake8 cms tests runserver.py
flake8 --ignore E501,F821,N802 runserver.spec
« tests/test_site/templates/default.tmpl ('K') | « tests/test_site/templates/empty.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld