teresantns / DesafioConstrudelas

Final project for the Construdelas academy, in which I built a loyalty program API
1 stars 0 forks source link

Create Unit and Integration tests for the API #13

Closed teresantns closed 2 years ago

teresantns commented 2 years ago

Writing tests is essential to guarantee the efficiency and consistency of our code. Testing can be done to check individual units of code (unit testing) or to check the relation between our modules (integration testing). We will use django's TestCase class, and Django REST framework APIClient class to create tests for our models and API endpoints.

Models unit tests:

Endpoints integration tests: