Skip to content
Snippets Groups Projects
Commit c5db8a27 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

Merge branch 'f-entity-role' into 'dev'

Add test for entity.role after retrieve

See merge request !11
parents b35b950a b120257a
No related branches found
No related tags found
1 merge request!11Add test for entity.role after retrieve
Pipeline #10298 failed
......@@ -581,3 +581,11 @@ 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