Reputation: 3995
I have started to write an API using the Django REST Framework. I am struggling to think about what tests I should be writing.
My ideas so far are...
Since the Django REST framework uses Django's underlying permissions system, is it really necessary to test permissions at both the model level and the API level? In this regard, it seems like some of my tests are testing for the same thing.
Upvotes: 3
Views: 84
Reputation: 1902
One of the more important things to test in an API is that it handles requests correctly. Good requests and Bad ones.
Upvotes: 1