          # TODO this should be changed once the multiple response
          # schema support is there
          success_response = responses['200']
  
          assert len(success_response['content'].keys()) == 1
          assert 'application/json' in success_response['content']
  
      def test_openapi_yaml_rendering_without_aliases(self):
          renderer = OpenAPIRenderer()
  
          reused_object = {'test': 'test'}
 
</s> remove             if renderer == renderers.BrowsableAPIRenderer:
 </s> add             if issubclass(renderer, renderers.BrowsableAPIRenderer): </s> remove             renderer_classes = [JSONRenderer]
 </s> add             renderer_classes = [JSONRenderer, TextRenderer, BrowsableAPIRenderer, CustomBrowsableAPIRenderer] </s> remove from rest_framework.renderers import JSONRenderer, OpenAPIRenderer
 </s> add from rest_framework.renderers import (
    BaseRenderer, BrowsableAPIRenderer, JSONRenderer, OpenAPIRenderer
)
        # Check that the API renderers aren't included, but custom renderers are
        assert set(success_response['content']) == {'application/json', 'text/plain'}
          # TODO this should be changed once the multiple response
          # schema support is there
          success_response = responses['200']
  
        # Check that the API renderers aren't included, but custom renderers are
        assert set(success_response['content']) == {'application/json', 'text/plain'}
        # Check that the API renderers aren't included, but custom renderers are
        assert set(success_response['content']) == {'application/json', 'text/plain'}
  
      def test_openapi_yaml_rendering_without_aliases(self):
          renderer = OpenAPIRenderer()
  
          reused_object = {'test': 'test'}
keep keep keep keep replace 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