Reputation: 9194
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.
unittest
is sufficient, should it be used in conjunction with some kind of faker?Upvotes: 2
Views: 1270
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