cheslijones
cheslijones

Reputation: 9194

Integration testing DRF

I'm using Django with DRF as just an API--it doesn't serve any FE assets of any kind. I know the Django testing suite is built on the Python native unittest library and plan on using it for unit testing.

Upvotes: 2

Views: 1270

Answers (1)

user1600649
user1600649

Reputation:

If you want to test the API contract, you need:

This setup will test your urlconfs, views, serializers and to some extent your models, without the need for real server and without the need to mock API responses.

Upvotes: 2

Related Questions