Open rodrigoccurvo opened 7 years ago
When a mock function returns a string, the response's URL is not set with the request's. I'm not sure if this is on purpose, but it seems the request is not passed as a parameter here:
elif isinstance(res, (text_type, binary_type)): return response(content=res, stream=kwargs.get('stream', False))
When a mock function returns a string, the response's URL is not set with the request's. I'm not sure if this is on purpose, but it seems the request is not passed as a parameter here: