          component = components['Item']
          # there should be no empty 'required' property, see #6834
          assert 'required' not in component
  
          for response in inspector._get_responses(path, method).values():
              assert 'required' not in component
  
      def test_empty_required_with_patch_method(self):
          path = '/'
          method = 'PATCH'
 
</s> remove         for response in inspector._get_responses(path, method).values():
 </s> add         for response in inspector.get_responses(path, method).values(): </s> remove         responses = inspector._get_responses(path, method)
 </s> add         responses = inspector.get_responses(path, method) </s> remove         data = inspector._map_serializer(Serializer())
 </s> add         data = inspector.map_serializer(Serializer()) </s> remove         content = self._map_serializer(serializer)
 </s> add         content = self.map_serializer(serializer) </s> remove         responses = inspector._get_responses(path, method)
 </s> add         responses = inspector.get_responses(path, method)
        for response in inspector.get_responses(path, method).values():
          component = components['Item']
          # there should be no empty 'required' property, see #6834
          assert 'required' not in component
  
        for response in inspector.get_responses(path, method).values():
              assert 'required' not in component
  
      def test_empty_required_with_patch_method(self):
          path = '/'
          method = 'PATCH'
keep keep keep keep replace keep keep keep keep keep
 Convert openapi.AutoSchema methods to public API. 
tests/schemas/test_openapi.py