Here is the code below:
response = requests.get("xyx@.com", stream=True)
data = response.raw.read()
i want to mock "response.raw.read()" , i know several options for mocking requests.get but i need to mock the 2nd line of code.
Here is the code below:
response = requests.get("xyx@.com", stream=True)
data = response.raw.read()
i want to mock "response.raw.read()" , i know several options for mocking requests.get but i need to mock the 2nd line of code.