Fix introspection of list field in schema by limdauto · Pull Request #5326 · encode/django-rest-framework (original) (raw)
@carltongibson sorry I was moving house last week so only got a chance to do it now. I have added a test.
As a general question, the test suite for schema generation seems to be all integration test, i.e. we need to make a call to the API and get back the schema to check for validity. So it takes a bit of extra effort to test smaller fixes like this. What's your opinion of introducing more unit tests to some lower-level methods?