change abc to raise NotImplementedError for tests

This commit is contained in:
2021-10-23 21:08:07 +01:00
parent 844a2f6f3f
commit 485ab9ef09
2 changed files with 9 additions and 2 deletions

7
.coveragerc Normal file
View File

@@ -0,0 +1,7 @@
[report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError

View File

@@ -98,11 +98,11 @@ class LoggingData(metaclass=ABCMeta):
@property
@abstractmethod
def format(self) -> str:
pass
raise NotImplementedError
@abstractmethod
def __init__(self, logging_level: str):
self.logging_level = logging_level
raise NotImplementedError
class SimpleLogger(LoggingData):