Answer the question
In order to leave comments, you need to log in
Testing DjangoRestFramework API with Postman?
Hello, forum users who often save with a good answer and docks! Interested in testing Django based APIs with Postman, Burp or other similar programs. The fact is that I managed to find few normal docks in Russian on this topic, and there are not many in English either. Those who contacted the API and Django, please share your experience and give a link to what you think are normal docs or recommend tutorials. Any help on this issue would be helpful to me.
Thank you!
PS: The fact that I asked this question on the toaster does not mean that I stopped looking for information myself and forgot how to google.
Answer the question
In order to leave comments, you need to log in
Use mockups:
https://docs.python.org/3/library/unittest.mock.html
In tests, just patch api calls outside and substitute test data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question