Fix tox configuration

This commit is contained in:
Iacopo Spalletti 2014-06-09 08:38:37 +02:00
parent c34fd11139
commit ab1d15f060
3 changed files with 31 additions and 7 deletions

27
.coveragerc Normal file
View file

@ -0,0 +1,27 @@
[run]
branch = True
source = djangocms_blog
[report]
omit = ../*migrations*,../*tests*
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
ignore_errors = True
[html]
directory = coverage_html

View file

@ -46,7 +46,7 @@ setup(
'django-taggit-autosuggest',
'django-admin-enhancer',
'djangocms-text-ckeditor',
'cmsplugin-filer-image',
'cmsplugin-filer',
'django-meta-mixin',
],
license="BSD",

View file

@ -1,10 +1,7 @@
[tox]
envlist = py26, py27, py33
envlist = py26, py27
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/djangocms_blog
commands = python setup.py test
commands = python runtests.py
deps =
-r{toxinidir}/requirements-dev.txt
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt