From ff31bf58804fc984c694f6acfaa302042bc85d89 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sun, 3 Jan 2016 21:59:35 -0500 Subject: Boost coverage. Use coverage.ini to ignore a few common idioms, so as to reduce code clutter. Invoke coverage slightly differently in the tox.ini. --- src/mailman/rest/helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mailman/rest/helpers.py') diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py index be5a4804b..8de2632bc 100644 --- a/src/mailman/rest/helpers.py +++ b/src/mailman/rest/helpers.py @@ -86,7 +86,7 @@ class ExtendedEncoder(json.JSONEncoder): # It's up to the decoding validator to associate this name with # the right Enum class. return obj.name - return json.JSONEncoder.default(self, obj) + return super().default(obj) def etag(resource): @@ -130,7 +130,7 @@ class CollectionMixin: :return: The representation of the resource. :rtype: dict """ - raise NotImplementedError # pragma: no cover + raise NotImplementedError def _resource_as_json(self, resource): """Return the JSON formatted representation of the resource.""" @@ -147,7 +147,7 @@ class CollectionMixin: :return: The collection :rtype: list """ - raise NotImplementedError # pragma: no cover + raise NotImplementedError def _paginate(self, request, collection): """Method to paginate through collection result lists. -- cgit v1.2.3-70-g09d2