Open soxofaan opened 4 months ago
But in reality that fallback value is never used because the "reason" is actually set (e.g. to None unless user specified something else), as create_response
is called roughly like this:
context = _Context(...
self._params.get('reason'),
)
...
return create_response(...
reason=context.reason,
I guess a better fix is to also add a fallback value to that self._params.get('reason')
call
(Instead of piggybacking on the old #118, It thought it was better to start a new ticket)
PR #126 tried to address #118, but I think that fix never worked, I still get this with latest requests-mock 1.12.1:
Note the "None" instead of "Not Found"