From b264e7439e0e56ef574e4f8b0287854dfb527b0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Tue, 15 Nov 2022 16:16:48 +0100
Subject: [PATCH] TST: get tests running again

---
 src/caoscrawler/identifiable.py      | 2 +-
 src/caoscrawler/identified_cache.py  | 2 +-
 unittests/test_file_identifiables.py | 3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/caoscrawler/identifiable.py b/src/caoscrawler/identifiable.py
index 129bb9f3..32d07b5e 100644
--- a/src/caoscrawler/identifiable.py
+++ b/src/caoscrawler/identifiable.py
@@ -111,7 +111,7 @@ class Identifiable():
         3. equal if attribute representations are equal
         """
         if not isinstance(other, Identifiable):
-            raiser ValueError("Identifiable can only be compared to other Identifiable objects.")
+            raise ValueError("Identifiable can only be compared to other Identifiable objects.")
         elif self.record_id is not None and other.record_id is not None:
             return self.record_id == other.record_id
         elif self.path is not None and other.path is not None:
diff --git a/src/caoscrawler/identified_cache.py b/src/caoscrawler/identified_cache.py
index 9df66e92..aa2d82f8 100644
--- a/src/caoscrawler/identified_cache.py
+++ b/src/caoscrawler/identified_cache.py
@@ -49,7 +49,7 @@ class IdentifiedCache(object):
     caches).
     """
 
-   def __init__(self):
+    def __init__(self):
         self._cache = {}
         self._identifiables = []
 
diff --git a/unittests/test_file_identifiables.py b/unittests/test_file_identifiables.py
index caa2572d..f71ea75a 100644
--- a/unittests/test_file_identifiables.py
+++ b/unittests/test_file_identifiables.py
@@ -18,7 +18,8 @@ def test_file_identifiable():
     identifiable = ident.get_identifiable(file_obj)
 
     # the path is copied to the identifiable
-    assert file_obj != identifiable
+    with raises(ValueError):
+        file_obj != identifiable
     assert file_obj.path == identifiable.path
 
     # since the path does not exist in the data in ident, the follwoing functions return None
-- 
GitLab