def test_operation_parser_with_dict():
  """Test initialization of OperationParser with a dictionary."""
  operation_dict = {
      'operationId': 'test_dict_operation',
      'parameters': [
          {'name': 'dict_param', 'in': 'query', 'schema': {'type': 'string'}}
      ],
      'responses': {
          '200': {
              'description': 'Dict Success',
              'content': {'application/json': {'schema': {'type': 'string'}}},
          }
      },
  }
  parser = OperationParser(operation_dict)
  assert parser._operation.operationId == 'test_dict_operation'
  assert len(parser._params) == 1
  assert parser._params[0].original_name == 'dict_param'
  assert parser._return_value.type_hint == 'str'
Test initialization of OperationParser with a dictionary.
tests/unittests/tools/openapi_tool/openapi_spec_parser/test_operation_parser.py