Conversation
|
Run tests with 'python manage.py test' |
syk1112
left a comment
There was a problem hiding this comment.
LGTM but the test case for test_form_data_view_scheduled fails now because I believe the case's arraignment date is in the past and as such cannot be setup for reminder. Can you choose a different case number?
|
I can, or I can implement some mocking so we don't have to rely on actual case data, which changes. |
|
Actually, I'm not sure how to mock a request made within another request. I can just change the case number for now. |
The trick to mocking calls from inside another request is to mock it with the full context from where it is being called: e.g. hope this helps. |
|
Awesome, thanks jdungan. I'll get to work on that and commit again |
I updated the website views test cases with the changed post endpoint name, different phone numbers, and updated success message.