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

fix

parent 228e09a9
No related branches found
No related tags found
2 merge requests!71REL: RElease v0.2.0,!5FIX: use identifiable instead of record
Pipeline #29356 passed
...@@ -520,10 +520,10 @@ def test_all_references_are_existing_already(crawler): ...@@ -520,10 +520,10 @@ def test_all_references_are_existing_already(crawler):
.add_property('b', db.Record(id=123))) .add_property('b', db.Record(id=123)))
# entity to be referenced in the following # entity to be referenced in the following
a = db.Record(name="C").add_parent("C").add_property("d", 12311) a = db.Record(name="C").add_parent("C").add_property("d", 12311)
# one ref with id one with Entity without id (but not identifying) -> check # one ref with id one with Entity without id (but not identifying) -> fail
assert crawler.all_references_are_existing_already(db.Record(name="C").add_parent("C") assert not crawler.all_references_are_existing_already(db.Record(name="C").add_parent("C")
.add_property('d', 123) .add_property('d', 123)
.add_property('e', a)) .add_property('e', a))
# one ref with id one with Entity without id (mixed) -> fail # one ref with id one with Entity without id (mixed) -> fail
assert not crawler.all_references_are_existing_already(db.Record(name="D").add_parent("D") assert not crawler.all_references_are_existing_already(db.Record(name="D").add_parent("D")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment