Skip to content

Commit

Permalink
Add test to ensure workflow admin works
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Aug 27, 2024
1 parent e99ac63 commit eaf452a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_moderation_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,13 @@ def test_reject_moderation_workflow(self):
self.assertFalse(moderation_request.is_active)
last_action = ModerationRequestAction.objects.last()
self.assertTrue(last_action.action, constants.ACTION_CANCELLED)

def test_workflow_admin_renders(self):
url = get_admin_url(
name="cms_moderation_workflow_change", language="en", args=(self.workflow.pk,)
)

result = self.client.get(url)

self.assertEqual(result.status_code, 200)
self.assertContains(result, self.workflow.name)

0 comments on commit eaf452a

Please sign in to comment.