Skip to content

Commit 5229140

Browse files
committed
test: show that staff member is able to save an incomplete flow w/agency
refine the tests to show that there is still incorrect behavior, namely that as long as there are no template errors, the model validation allows an incomplete EnrollmentFlow to be saved with a transit agency.
1 parent 92a5dde commit 5229140

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: tests/pytest/core/admin/test_enrollment.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def test_EnrollmentFlowForm_staff_member_with_transit_agency(
186186
self, admin_user_request, flow_admin_model, model_TransitAgency, active
187187
):
188188
model_TransitAgency.active = active
189+
model_TransitAgency.slug = "mst" # use value that will map to existing templates
189190
model_TransitAgency.save()
190191

191192
request = admin_user_request()
@@ -194,7 +195,7 @@ def test_EnrollmentFlowForm_staff_member_with_transit_agency(
194195
form_class = flow_admin_model.get_form(request)
195196

196197
request.POST = dict(
197-
system_name="testflow",
198+
system_name="senior", # use value that will map to existing templates
198199
supported_enrollment_methods=[models.EnrollmentMethods.DIGITAL, models.EnrollmentMethods.IN_PERSON],
199200
transit_agency=model_TransitAgency.id,
200201
)

0 commit comments

Comments
 (0)