diff --git a/unittests/test_apiutils.py b/unittests/test_apiutils.py index bb6f978bb83c4ee32cc485f538b8807c8f7012dd..434e276f7c098277afc182f59e55d78384ff37ad 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.