From 3e8a832912ac8043d85bd754611c49b5112c92ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Sun, 16 Oct 2022 11:41:36 +0200
Subject: [PATCH] revert change

---
 unittests/test_tool.py | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/unittests/test_tool.py b/unittests/test_tool.py
index e924a9d6..33ccc230 100755
--- a/unittests/test_tool.py
+++ b/unittests/test_tool.py
@@ -284,15 +284,11 @@ def test_crawler_update_list(crawler, ident):
     assert len(comp[0]["properties"]) == 0
     assert len(comp[1]["properties"]) == 0
 
-    insl, updl = crawler.split_into_inserts_and_updates(crawler.updateList)
+
+def test_synchronization(crawler, ident):
+    insl, updl = crawler.synchronize(commit_changes=False)
 
     assert len(insl) == 0
-    assert len(updl) == 18
-    identified_records = [crawler.identifiableAdapter.retrieve_identifiable(record) for record
-                          in updl]
-    for el in updl:
-        crawler.replace_entities_by_ids(el)
-    Crawler.remove_unnecessary_updates(updl, identified_records)
     assert len(updl) == 0
 
 
-- 
GitLab