mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
Check test coverage
This commit is contained in:
parent
4c440ada4c
commit
ef6536d1ec
9
livesync/.coveragerc
Normal file
9
livesync/.coveragerc
Normal file
@ -0,0 +1,9 @@
|
||||
[run]
|
||||
branch = true
|
||||
include = indico_*
|
||||
|
||||
|
||||
[report]
|
||||
exclude_lines =
|
||||
pragma: no cover
|
||||
def __repr__
|
||||
2
livesync/.gitignore
vendored
2
livesync/.gitignore
vendored
@ -4,3 +4,5 @@
|
||||
*.min.js
|
||||
*.pyc
|
||||
*.egg-info
|
||||
.coverage
|
||||
htmlcov/
|
||||
|
||||
@ -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
5
livesync/pytest.ini
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user