def test_parse_request_object_should_not_parse_pydantic_v2_model(self):
        """Ensures parse_request_object does not parse pydantic v2 model"""

        class PydanticV2Model(pydantic.BaseModel):
            field1: str

        request_obj_dict = {"field1": "hello"}

        with self.assertRaises(RuntimeError) as context:
            api.parse_request_object(PydanticV2Model, request_obj_dict)

        self.assertIn('no validator found for', str(context.exception))
Ensures parse_request_object does not parse pydantic v2 model
tests/integ_tests/tensor_search/test_api.py