Skip to content
Snippets Groups Projects
Verified Commit 82c761e4 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Add test for entity.role after retrieve

parent b35b950a
No related branches found
No related tags found
1 merge request!11Add test for entity.role after retrieve
Pipeline #9806 failed
......@@ -581,3 +581,10 @@ def test_cache_performance():
t2 = t.time() - t1
print("Time [s]: " + str(t2))
n += 10
def test_role_after_retrieve():
rt = db.RecordType("TestRT").insert()
entity = db.Entity(id=rt.id)
assert entity.role is None
entity.retrieve()
assert entity.role == rt.role
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