diff --git a/passbook/root/settings.py b/passbook/root/settings.py index ca5a6c087..c0ffdb0ba 100644 --- a/passbook/root/settings.py +++ b/passbook/root/settings.py @@ -358,7 +358,7 @@ TEST_OUTPUT_VERBOSE = 2 TEST_OUTPUT_FILE_NAME = "unittest.xml" if any("test" in arg for arg in sys.argv): - # LOGGING = None + LOGGING = None TEST = True CELERY_TASK_ALWAYS_EAGER = True diff --git a/passbook/stages/identification/tests.py b/passbook/stages/identification/tests.py index 3f550478a..4b98a098a 100644 --- a/passbook/stages/identification/tests.py +++ b/passbook/stages/identification/tests.py @@ -77,3 +77,19 @@ class TestIdentificationStage(TestCase): form_data, ) self.assertEqual(response.status_code, 200) + + def test_enrollment_flow(self): + """Test that enrollment flow is linked correctly""" + flow = Flow.objects.create( + name="enroll-test", + slug="unique-string", + designation=FlowDesignation.ENROLLMENT, + ) + + response = self.client.get( + reverse( + "passbook_flows:flow-executor", kwargs={"flow_slug": self.flow.slug} + ), + ) + self.assertEqual(response.status_code, 200) + self.assertIn(flow.slug, response.rendered_content)