aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-01-25 18:42:12 -0800
committerGravatar MarkKoz <[email protected]>2020-02-12 10:07:54 -0800
commit2a8c545a4d3d39a9d9659b607872c7f5653051ea (patch)
treedaaadbd57674ee553e912692261115fe305ba3ea
parentSync tests: test _get_confirmation_result for large diffs (diff)
Sync tests: ignore coverage for abstract methods
It's impossible to create an instance of the base class which does not have the abstract methods implemented, so it doesn't really matter what they do.
-rw-r--r--bot/cogs/sync/syncers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/sync/syncers.py b/bot/cogs/sync/syncers.py
index e6faca661..23039d1fc 100644
--- a/bot/cogs/sync/syncers.py
+++ b/bot/cogs/sync/syncers.py
@@ -36,7 +36,7 @@ class Syncer(abc.ABC):
@abc.abstractmethod
def name(self) -> str:
"""The name of the syncer; used in output messages and logging."""
- raise NotImplementedError
+ raise NotImplementedError # pragma: no cover
async def _send_prompt(self, message: t.Optional[Message] = None) -> t.Optional[Message]:
"""
@@ -143,12 +143,12 @@ class Syncer(abc.ABC):
@abc.abstractmethod
async def _get_diff(self, guild: Guild) -> _Diff:
"""Return the difference between the cache of `guild` and the database."""
- raise NotImplementedError
+ raise NotImplementedError # pragma: no cover
@abc.abstractmethod
async def _sync(self, diff: _Diff) -> None:
"""Perform the API calls for synchronisation."""
- raise NotImplementedError
+ raise NotImplementedError # pragma: no cover
async def _get_confirmation_result(
self,