Fix tox configuration
This commit is contained in:
parent
c34fd11139
commit
ab1d15f060
3 changed files with 31 additions and 7 deletions
27
.coveragerc
Normal file
27
.coveragerc
Normal 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
|
2
setup.py
2
setup.py
|
@ -46,7 +46,7 @@ setup(
|
|||
'django-taggit-autosuggest',
|
||||
'django-admin-enhancer',
|
||||
'djangocms-text-ckeditor',
|
||||
'cmsplugin-filer-image',
|
||||
'cmsplugin-filer',
|
||||
'django-meta-mixin',
|
||||
],
|
||||
license="BSD",
|
||||
|
|
9
tox.ini
9
tox.ini
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue