Skip to content
Snippets Groups Projects

MAINT: adapt to new default keyword RECORD in FIND queries

Merged Henrik tom Wörden requested to merge f-refactor-find into dev
All threads resolved!
13 files
+ 41
41
Compare changes
  • Side-by-side
  • Inline
Files
13
@@ -33,7 +33,7 @@ from caosadvancedtools.guard import (global_guard, RETRIEVE, UPDATE)
def setup():
"""Delete all test entities."""
db.execute_query("FIND Test*").delete(raise_exception_on_error=False)
db.execute_query("FIND ENTITY Test*").delete(raise_exception_on_error=False)
def setup_module():
@@ -105,13 +105,13 @@ def test_add_to_empty_list():
db.Record(name="TestReferencingRecord").add_parent(
referencing_rt).add_property(list_prop, value=[]).insert()
referenced_rec = db.execute_query("FIND TestReferencedRecord", unique=True)
referenced_rec = db.execute_query("FIND ENTITY TestReferencedRecord", unique=True)
referencing_rec = db.execute_query(
"FIND TestReferencingRecord", unique=True)
"FIND ENTITY TestReferencingRecord", unique=True)
assure_object_is_in_list(referenced_rec, referencing_rec, list_prop.name)
referencing_rec = db.execute_query(
"FIND TestReferencingRecord", unique=True)
"FIND ENTITY TestReferencingRecord", unique=True)
assert referencing_rec.get_property(list_prop.name).value == [
referenced_rec.id]
Loading