From 487a509743dd94742780d2b757c224a5756d2f11 Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Fri, 24 Nov 2023 10:53:30 +0100
Subject: [PATCH] TEST: xfail for issue 111

See #111 https://gitlab.com/linkahead/linkahead-pylib/-/issues/111 for details.
---
 unittests/test_apiutils.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/unittests/test_apiutils.py b/unittests/test_apiutils.py
index bb6f978b..434e276f 100644
--- a/unittests/test_apiutils.py
+++ b/unittests/test_apiutils.py
@@ -362,6 +362,15 @@ def test_bug_109():
         r_a)
 
 
+@pytest.mark.xfail(reason="Issue https://gitlab.com/linkahead/linkahead-pylib/-/issues/111")
+def test_failing_merge_entities_111():
+    prop_a = db.Property()
+    prop_b = db.Property(name="b", datatype=db.TEXT)
+    db.apiutils.merge_entities(prop_a, prop_b)
+    assert prop_a.name == "b"  # OK
+    assert prop_a.datatype == db.TEXT  # fails
+
+
 def test_wrong_merge_conflict_reference():
     """Test a wrongly detected merge conflict in case of two records referencing
     two different, but identical objects.
-- 
GitLab