Being new to testing i'm looking to test my API in Django (Django-rest-framework).
I'm setting up tests for my views, that is my API endpoints. Now looking over the documentation i can use an APIRequestFactory or a APIClient. Both seem to do the same thing.
What is the difference between those two, and why/when should i use one or the other??
Aucun commentaire:
Enregistrer un commentaire