Check test coverage

This commit is contained in:
Adrian Moennich 2014-11-14 13:43:10 +01:00
parent 4c440ada4c
commit ef6536d1ec
4 changed files with 18 additions and 2 deletions

9
livesync/.coveragerc Normal file
View File

@ -0,0 +1,9 @@
[run]
branch = true
include = indico_*
[report]
exclude_lines =
pragma: no cover
def __repr__

2
livesync/.gitignore vendored
View File

@ -4,3 +4,5 @@
*.min.js
*.pyc
*.egg-info
.coverage
htmlcov/

View File

@ -65,7 +65,7 @@ class Uploader(object):
:param from_queue: if `records` contains queue entries.
expect events if it is False.
"""
raise NotImplementedError
raise NotImplementedError # pragma: no cover
def processed_records(self, records):
"""Executed after successfully uploading a batch of records from the queue.
@ -87,4 +87,4 @@ class MARCXMLUploader(Uploader):
def upload_xml(self, xml):
"""Receives MARCXML strings to be uploaded"""
raise NotImplementedError
raise NotImplementedError # pragma: no cover

5
livesync/pytest.ini Normal file
View File

@ -0,0 +1,5 @@
[pytest]
; more verbose summary (include skip/fail/error/warning), coverage
addopts = -rsfEw --cov . --cov-report html --no-cov-on-fail
; only check for tests in suffixed files
python_files = *_test.py