          method = 'GET'
  
          class View(generics.CreateAPIView):
              serializer_class = views.ExampleSerializer
              renderer_classes = [JSONRenderer]
  
          view = create_view(
              View,
              method,
              create_request(path),
 
</s> remove         assert len(success_response['content'].keys()) == 1
        assert 'application/json' in success_response['content']
 </s> add         # Check that the API renderers aren't included, but custom renderers are
        assert set(success_response['content']) == {'application/json', 'text/plain'} </s> remove             if renderer == renderers.BrowsableAPIRenderer:
 </s> add             if issubclass(renderer, renderers.BrowsableAPIRenderer): </s> remove from rest_framework.renderers import JSONRenderer, OpenAPIRenderer
 </s> add from rest_framework.renderers import (
    BaseRenderer, BrowsableAPIRenderer, JSONRenderer, OpenAPIRenderer
)
            renderer_classes = [JSONRenderer, TextRenderer, BrowsableAPIRenderer, CustomBrowsableAPIRenderer]
          method = 'GET'
  
          class View(generics.CreateAPIView):
              serializer_class = views.ExampleSerializer
            renderer_classes = [JSONRenderer, TextRenderer, BrowsableAPIRenderer, CustomBrowsableAPIRenderer]
  
          view = create_view(
              View,
              method,
              create_request(path),
keep keep keep keep replace keep keep keep keep keep
 Ignore derivations of BrowsableAPIRenderer in OpenAPI schema (#7497)

* Ignore derivations of BrowsableAPIRenderer in OpenAPI schema
* Improve test_renderer_mapping test

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> 
tests/schemas/test_openapi.py