  from rest_framework import filters, generics, pagination, routers, serializers
  from rest_framework.authtoken.views import obtain_auth_token
  from rest_framework.compat import uritemplate
  from rest_framework.parsers import JSONParser, MultiPartParser
  from rest_framework.renderers import JSONRenderer, OpenAPIRenderer
  from rest_framework.request import Request
  from rest_framework.schemas.openapi import AutoSchema, SchemaGenerator
  
  from . import views
  
 
</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             renderer_classes = [JSONRenderer]
 </s> add             renderer_classes = [JSONRenderer, TextRenderer, BrowsableAPIRenderer, CustomBrowsableAPIRenderer] </s> remove             if renderer == renderers.BrowsableAPIRenderer:
 </s> add             if issubclass(renderer, renderers.BrowsableAPIRenderer):
from rest_framework.renderers import (
    BaseRenderer, BrowsableAPIRenderer, JSONRenderer, OpenAPIRenderer
)
  from rest_framework import filters, generics, pagination, routers, serializers
  from rest_framework.authtoken.views import obtain_auth_token
  from rest_framework.compat import uritemplate
  from rest_framework.parsers import JSONParser, MultiPartParser
from rest_framework.renderers import (
    BaseRenderer, BrowsableAPIRenderer, JSONRenderer, OpenAPIRenderer
)
  from rest_framework.request import Request
  from rest_framework.schemas.openapi import AutoSchema, SchemaGenerator
  
  from . import views
  
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