stages/identification: test signup notice
This commit is contained in:
parent
1d03b36750
commit
8de87d9acb
|
@ -358,7 +358,7 @@ TEST_OUTPUT_VERBOSE = 2
|
||||||
TEST_OUTPUT_FILE_NAME = "unittest.xml"
|
TEST_OUTPUT_FILE_NAME = "unittest.xml"
|
||||||
|
|
||||||
if any("test" in arg for arg in sys.argv):
|
if any("test" in arg for arg in sys.argv):
|
||||||
# LOGGING = None
|
LOGGING = None
|
||||||
TEST = True
|
TEST = True
|
||||||
CELERY_TASK_ALWAYS_EAGER = True
|
CELERY_TASK_ALWAYS_EAGER = True
|
||||||
|
|
||||||
|
|
|
@ -77,3 +77,19 @@ class TestIdentificationStage(TestCase):
|
||||||
form_data,
|
form_data,
|
||||||
)
|
)
|
||||||
self.assertEqual(response.status_code, 200)
|
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)
|
||||||
|
|
Reference in New Issue