From eaf452a01b0738a71d54fc7d4cf8b2a8e84642cf Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Tue, 27 Aug 2024 13:43:29 +0200 Subject: [PATCH] Add test to ensure workflow admin works --- tests/test_moderation_flows.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_moderation_flows.py b/tests/test_moderation_flows.py index 41fe54d1..113c0127 100644 --- a/tests/test_moderation_flows.py +++ b/tests/test_moderation_flows.py @@ -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)