From 0f48a88ca69c6209d950689fa8780b5edd2758d2 Mon Sep 17 00:00:00 2001
From: Christian Boettcher <c.boettcher@fz-juelich.de>
Date: Tue, 9 Nov 2021 08:10:27 +0100
Subject: [PATCH] exclude abstract classes from test coverage

---
 apiserver/security/user.py           | 2 +-
 apiserver/storage/LocationStorage.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/apiserver/security/user.py b/apiserver/security/user.py
index 5df8957..af7e4c7 100644
--- a/apiserver/security/user.py
+++ b/apiserver/security/user.py
@@ -45,7 +45,7 @@ class Secret(BaseModel):
     secret: str = None
 
 
-class AbstractDBInterface(metaclass=abc.ABCMeta):
+class AbstractDBInterface(metaclass=abc.ABCMeta): # pragma: no cover
     @abc.abstractclassmethod
     def list(self) -> List:
         raise NotImplementedError()
diff --git a/apiserver/storage/LocationStorage.py b/apiserver/storage/LocationStorage.py
index 2916979..1b7b0d0 100644
--- a/apiserver/storage/LocationStorage.py
+++ b/apiserver/storage/LocationStorage.py
@@ -17,7 +17,7 @@ class LocationData(BaseModel):
     metadata: Optional[Dict[str, str]]
 
 
-class AbstractLocationDataStorageAdapter:
+class AbstractLocationDataStorageAdapter: # pragma: no cover
     """
     This is an abstract storage adapter for storing information about datasets,
     storage targets and similar things. It can easily be expanded to also store
@@ -40,7 +40,7 @@ class AbstractLocationDataStorageAdapter:
     def get_list(self, n_type: LocationDataType) -> List:
         """Get a list of all LocationData Elements with the provided type, as pairs of {name : id}"""
 
-        raise NotImplementedError()
+        raise NotImplementedError() 
     
     def add_new(self, n_type: LocationDataType, data: LocationData, user_name: str):
         """
-- 
GitLab