When running the college-costs tests with https://github.com/cfpb/cfgov-refresh/, the django locale middleware is loaded. That middleware chokes trying to modify the headers of the original MagicMock it got instead of a Response object. This PR removes the mocking of render_to_response and mocks the feedback object creation instead.
Coverage remained the same at 100.0% when pulling cc151cf52ea41afe738f27388f579d6096dea8fd on holistic-tests into 0a2dda83381db676e2895f4227d8c06c00d0f6e2 on master.
Coverage remained the same at 100.0% when pulling 8c27c4e5e4ce7ef8f6b873c7ed80d45662ace109 on holistic-tests into 0a2dda83381db676e2895f4227d8c06c00d0f6e2 on master.
When running the college-costs tests with https://github.com/cfpb/cfgov-refresh/, the django locale middleware is loaded. That middleware chokes trying to modify the headers of the original MagicMock it got instead of a Response object. This PR removes the mocking of
render_to_response
and mocks the feedback object creation instead.Part of GHE/CFGOV/platform/issues/798
Changes
Testing
pip install git+https://https://github.com/cfpb/college-costs.git@holistic-tests
tox -e optional
Checklist