stages/identification: test signup notice

This commit is contained in:
Jens Langhammer 2020-05-10 18:17:24 +02:00
parent 1d03b36750
commit 8de87d9acb
2 changed files with 17 additions and 1 deletions

View file

@ -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

View file

@ -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)