Testing (and mocking) http requests to APIs etc.
You can test how your django app behaves depending on what kind of response it gets from the API. It assumes were're using the python requests library.
- http
- testing
- requests
- mock
You can test how your django app behaves depending on what kind of response it gets from the API. It assumes were're using the python requests library.
How I assert email is being sent correctly
monikasulik has posted 2 snippets.