Skip to content

Commit

Permalink
Rename default state and update tests. (#1277)
Browse files Browse the repository at this point in the history
* Rename default state and update tests.

* Fix test.
  • Loading branch information
reiterl committed Mar 23, 2022
1 parent af4bdfc commit 44998b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def update_instance(self, instance: Dict[str, Any]) -> Dict[str, Any]:
"workflow_id": instance["id"],
},
{
"name": "not_decided",
"name": "not decided",
"recommendation_label": "No decision",
"css_class": "grey",
"merge_amendment_into_final": "do_not_merge",
Expand Down
2 changes: 1 addition & 1 deletion tests/system/action/meeting/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_create_simple_and_complex_workflow(self) -> None:
"motion_state/3", {"name": "rejected", "previous_state_ids": [1]}
)
self.assert_model_exists(
"motion_state/4", {"name": "not_decided", "previous_state_ids": [1]}
"motion_state/4", {"name": "not decided", "previous_state_ids": [1]}
)
self.assert_model_exists(
"motion_workflow/2",
Expand Down
2 changes: 1 addition & 1 deletion tests/system/action/motion_workflow/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_create_simple_workflow(self) -> None:
)
self.assert_model_exists(
"motion_state/4",
{"name": "not_decided", "weight": 4, "previous_state_ids": [1]},
{"name": "not decided", "weight": 4, "previous_state_ids": [1]},
)

def test_create_no_permissions(self) -> None:
Expand Down

0 comments on commit 44998b3

Please sign in to comment.