Skip to content
Snippets Groups Projects
Commit 46cfd054 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

HOTFIX: removed permission to make test work. Should it be default?

parent 1cf06f03
No related branches found
No related tags found
No related merge requests found
......@@ -1117,6 +1117,7 @@ def test_use_as_property():
rt = db.RecordType(name="TestRecordType").add_property(name="TestProperty")
'''Failure'''
deny_permission(p, "USE:AS_PROPERTY")
with assert_raises(db.TransactionError) as cm:
rt.insert()
ex = cm.exception
......@@ -1187,6 +1188,7 @@ def test_use_as_parent():
name="TestProperty")
'''Failure'''
deny_permission(p, "USE:AS_PARENT")
with assert_raises(db.TransactionError) as cm:
p2.insert()
assert_equals(cm.exception.msg, "Entity has unqualified parents.")
......
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