Skip to content
Snippets Groups Projects

ENH: add resolve_value to Property

Merged Henrik tom Wörden requested to merge f-resolve-value into dev
1 file
+ 5
10
Compare changes
  • Side-by-side
  • Inline
+ 5
10
@@ -70,17 +70,12 @@ def test_id_query():
assert create_id_query(ids) == 'FIND ENTITY WITH ID=1 OR ID=2 OR ID=3 OR ID=4 OR ID=5'
original_retrieve_entity_with_id = caosdb.apiutils.retrieve_entity_with_id
def dummy_entity(eid):
return db.Record(id=eid)
caosdb.apiutils.retrieve_entity_with_id = dummy_entity
def test_resolve_reference():
original_retrieve_entity_with_id = caosdb.apiutils.retrieve_entity_with_id
def dummy_entity(eid):
return db.Record(id=eid)
caosdb.apiutils.retrieve_entity_with_id = dummy_entity
prop = db.Property(id=1, datatype=db.REFERENCE, value=100)
prop.is_valid = lambda: True
items = [200, 300, 400]
Loading