-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only show supported flows for In-person and Digital flows #2399
Only show supported flows for In-person and Digital flows #2399
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
mock_manager = mocker.Mock() | ||
mock_manager.all.return_value = [model_EnrollmentFlow] | ||
type(mock_agency).enrollment_flows = mocker.PropertyMock(return_value=mock_manager) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious if these lines are still needed or if they can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm probably not, since we aren't calling the .all
helper anymore, right? I guess we just need to mock the .filter
helper.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah! It shouldn't need it but for some reason right now it does for tests to pass.
Marking this PR as In Progress/Draft again b/c I'm trying to write a different spec to test the filtering function.
…gency This commit changes the implementation of the relationship between EnrollmentFlow and TransitAgency. EnrollmentFlow now has a TransitAgency foreign key field (many flows to one transit agency). This will allow us to have more flexibility with the names we can use in EnrollmentFlow.label (for example, having the name of the transit agency in this field won't be necessary anymore).
3e56fe8
to
4e7cdbe
Compare
e53ef3b
to
807b0b3
Compare
807b0b3
to
d63332c
Compare
d63332c
to
0366d1f
Compare
0366d1f
to
aa4676e
Compare
aa4676e
to
81bfcd3
Compare
12643bb
to
890cd55
Compare
closes #2396
What this PR does
How to test
Note: Either digital-only or in-person-only HAVE to be checked. You can't set a flow to be neither.