From d2db15cb9947d3f5f59ad3fccf18f141f0532a00 Mon Sep 17 00:00:00 2001
From: Alexander Schlemmer <alexander@mail-schlemmer.de>
Date: Mon, 7 Feb 2022 21:25:58 +0100
Subject: [PATCH] TST: updated one test

---
 src/newcrawler/identifiable_adapters.py | 2 +-
 unittests/test_tool.py                  | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/newcrawler/identifiable_adapters.py b/src/newcrawler/identifiable_adapters.py
index be725993..66cdb67c 100644
--- a/src/newcrawler/identifiable_adapters.py
+++ b/src/newcrawler/identifiable_adapters.py
@@ -364,7 +364,7 @@ class LocalStorageIdentifiableAdapter(IdentifiableAdapter):
                                       " be used as properties in identifiables.")
             # TODO: just resolve the entity
 
-        value_identifiable = self.retrieve_identified_record(value)
+        value_identifiable = self.retrieve_identified_record_for_record(value)
         if value_identifiable is None:
             raise RuntimeError("The identifiable which is used as property"
                                " here has to be inserted first.")
diff --git a/unittests/test_tool.py b/unittests/test_tool.py
index a3ebfbd0..ac57a8f3 100755
--- a/unittests/test_tool.py
+++ b/unittests/test_tool.py
@@ -297,6 +297,10 @@ def test_remove_unnecessary_updates():
     assert len(upl) == 1
 
 
+# Current status:
+# TODO: currently, this test fails, because non identifiable records cannot
+#       be inserted into the cache. Solution might be, just not to add them
+#       into the local cache. Probably in split_into_inserts_and_updates.
 @pytest.mark.xfail
 def test_identifiable_adapter_no_identifiable(crawler, ident):
     del ident._registered_identifiables["Person"]
-- 
GitLab