N
N
NyxDeveloper2021-02-27 22:44:25
Django
NyxDeveloper, 2021-02-27 22:44:25

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

1 answer(s)
V
Vladimir Kuts, 2021-02-28
@fox_12

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 question

Ask a Question

731 491 924 answers to any question