Merge branch 'master' into docs-flows

# Conflicts:
#	mkdocs.yml
This commit is contained in:
Jens Langhammer
2020-06-05 12:51:10 +02:00
30 changed files with 366 additions and 215 deletions

View File

@ -45,6 +45,19 @@ class TestEmailStage(TestCase):
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
def test_without_user(self):
"""Test without pending user"""
plan = FlowPlan(flow_pk=self.flow.pk.hex, stages=[self.stage])
session = self.client.session
session[SESSION_KEY_PLAN] = plan
session.save()
url = reverse(
"passbook_flows:flow-executor", kwargs={"flow_slug": self.flow.slug}
)
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
def test_pending_user(self):
"""Test with pending user"""
plan = FlowPlan(flow_pk=self.flow.pk.hex, stages=[self.stage])