Exemplo n.º 1
0
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) == {}
Exemplo n.º 2
0
def test_parse_request():
    assert parse_request(demo_func)['content']['application/json']['schema']['$ref'] \
        == '#/components/schemas/DemoModel'
    assert parse_request(demo_class.demo_method) == {}
Exemplo n.º 3
0
def test_parse_request():
    assert (parse_request(demo_func)["content"]["application/json"]["schema"]
            ["$ref"] == "#/components/schemas/DemoModel")
    assert parse_request(demo_class.demo_method) == {}