Skip to content
Snippets Groups Projects
Commit 09284e6f authored by Alexander Kreft's avatar Alexander Kreft
Browse files

fix

parent fd6550a1
Branches
Tags
1 merge request!19ENH: add resolve_value to Property
...@@ -70,17 +70,12 @@ def test_id_query(): ...@@ -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' 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(): 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 = db.Property(id=1, datatype=db.REFERENCE, value=100)
prop.is_valid = lambda: True prop.is_valid = lambda: True
items = [200, 300, 400] items = [200, 300, 400]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment