Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Exclude abstract methods from code coverage check
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Feb 19, 2017
1 parent f82a556 commit c6d1c72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions gutenberg/query/api.py
Expand Up @@ -88,23 +88,23 @@ def feature_name(cls):
get_etexts(X, ...) will delegate work to this MetadataExtractor.
"""
raise NotImplementedError
raise NotImplementedError # pragma: no cover

@abstractclassmethod
def get_metadata(cls, etextno):
"""Look up and return the meta-data value for this MetadataExtractor's
feature-name for the given text.
"""
raise NotImplementedError
raise NotImplementedError # pragma: no cover

@abstractclassmethod
def get_etexts(cls, value):
"""Look up and return the text identifiers whose meta-data about this
MetadataExtractor's feature name match the provided query.
"""
raise NotImplementedError
raise NotImplementedError # pragma: no cover

@classmethod
def _metadata(cls):
Expand Down
4 changes: 2 additions & 2 deletions gutenberg/query/extractors.py
Expand Up @@ -25,11 +25,11 @@ def predicate(cls):
meta-data value to extract. This should be a RDF Term or Path object.
"""
raise NotImplementedError
raise NotImplementedError # pragma: no cover

@abstractclassmethod
def contains(cls, value):
raise NotImplementedError
raise NotImplementedError # pragma: no cover

@classmethod
def get_metadata(cls, etextno):
Expand Down
2 changes: 1 addition & 1 deletion tests/_util.py
Expand Up @@ -40,7 +40,7 @@ def tearDown(self):
class MockMetadataMixin(with_metaclass(abc.ABCMeta, object)):
@abc.abstractmethod
def sample_data(self):
raise NotImplementedError
raise NotImplementedError # pragma: no cover

def setUp(self):
self.cache = _SleepycatMetadataCacheForTesting(self.sample_data, 'nt')
Expand Down

0 comments on commit c6d1c72

Please sign in to comment.