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

Revert formatting of entity_state_test_data.py

parent 4702f5f4
No related branches found
No related tags found
1 merge request!123Release 0.13.0
Pipeline #23051 failed
...@@ -98,6 +98,7 @@ def setup_state_model(): ...@@ -98,6 +98,7 @@ def setup_state_model():
unpublished_state.acl = unpublished_acl unpublished_state.acl = unpublished_acl
unpublished_state.insert() unpublished_state.insert()
review_acl = db.ACL() review_acl = db.ACL()
review_acl.grant(role="publisher", permission="*") review_acl.grant(role="publisher", permission="*")
review_acl.grant(role="normal", permission="RETRIEVE:ENTITY") review_acl.grant(role="normal", permission="RETRIEVE:ENTITY")
...@@ -111,6 +112,7 @@ def setup_state_model(): ...@@ -111,6 +112,7 @@ def setup_state_model():
review_state.acl = db.State.create_state_acl(review_acl) review_state.acl = db.State.create_state_acl(review_acl)
review_state.insert() review_state.insert()
published_acl = db.ACL() published_acl = db.ACL()
published_state = db.Record( published_state = db.Record(
...@@ -153,8 +155,7 @@ def setup_state_model(): ...@@ -153,8 +155,7 @@ def setup_state_model():
"Transition").add_property("from", "under review").add_property("to", "unpublished").insert() "Transition").add_property("from", "under review").add_property("to", "unpublished").insert()
# 1->1 # 1->1
db.Record("Edit", db.Record("Edit", description="Edit this entity. The changes are not publicly available until this entity will have been reviewed and published.").add_parent(
description="Edit this entity. The changes are not publicly available until this entity will have been reviewed and published.").add_parent(
"Transition").add_property( "Transition").add_property(
"from", "from",
"unpublished").add_property( "unpublished").add_property(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment