def test_parse_request(): model_path_key = get_model_path_key("tests.common.DemoModel") assert (parse_request(demo_func)["content"]["application/json"]["schema"] ["$ref"] == f"#/components/schemas/{model_path_key}") assert parse_request(demo_class.demo_method) == {}
def test_parse_request(): assert parse_request(demo_func)['content']['application/json']['schema']['$ref'] \ == '#/components/schemas/DemoModel' assert parse_request(demo_class.demo_method) == {}
def test_parse_request(): assert (parse_request(demo_func)["content"]["application/json"]["schema"] ["$ref"] == "#/components/schemas/DemoModel") assert parse_request(demo_class.demo_method) == {}