Skip to content
Snippets Groups Projects
Commit 58166513 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

TST: add new merge_entities testcase

parent 2727ff2e
No related branches found
No related tags found
2 merge requests!159Release 0.16.o,!157compare entities and parent/property lists
Pipeline #57274 passed with warnings
......@@ -569,6 +569,16 @@ B: something else"""
assert recB.get_property("propA").unit == "cm"
# test whether an id is correctly overwritten by an entity without id
recA = db.Record().add_parent("A").add_property(name="B", value=112)
newRec = db.Record()
recB = db.Record().add_parent("A").add_property(name="B", value=newRec)
merge_entities(recA, recB, force=True)
assert recA.get_property("B").value == newRec
def test_merge_missing_list_datatype_82():
"""Merging two properties, where the list-valued one has no datatype."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment