Skip to content

Commit

Permalink
test: show that staff member is able to save an incomplete flow w/agency
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
angela-tran committed Feb 6, 2025
1 parent 943b226 commit 05d9ad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/pytest/core/admin/test_enrollment.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def test_EnrollmentFlowForm_staff_member_with_transit_agency(
self, admin_user_request, flow_admin_model, model_TransitAgency, active
):
model_TransitAgency.active = active
model_TransitAgency.slug = "mst" # use value that will map to existing templates
model_TransitAgency.save()

request = admin_user_request()
Expand All @@ -194,7 +195,7 @@ def test_EnrollmentFlowForm_staff_member_with_transit_agency(
form_class = flow_admin_model.get_form(request)

request.POST = dict(
system_name="testflow",
system_name="senior", # use value that will map to existing templates
supported_enrollment_methods=[models.EnrollmentMethods.DIGITAL, models.EnrollmentMethods.IN_PERSON],
transit_agency=model_TransitAgency.id,
)
Expand Down

0 comments on commit 05d9ad5

Please sign in to comment.