mirror of https://github.com/tiangolo/fastapi.git
🎨 Auto format
This commit is contained in:
parent
4e6a723160
commit
8b175fc15c
|
|
@ -317,8 +317,13 @@ def test_openapi_schema_ast_inference():
|
||||||
"properties"
|
"properties"
|
||||||
]
|
]
|
||||||
assert empty_structures_props["empty_list"]["type"] == "array"
|
assert empty_structures_props["empty_list"]["type"] == "array"
|
||||||
assert "items" not in empty_structures_props["empty_list"] or not empty_structures_props["empty_list"].get("items")
|
assert "items" not in empty_structures_props[
|
||||||
assert "type" not in empty_structures_props["empty_dict"] or empty_structures_props["empty_dict"]["type"] == "object"
|
"empty_list"
|
||||||
|
] or not empty_structures_props["empty_list"].get("items")
|
||||||
|
assert (
|
||||||
|
"type" not in empty_structures_props["empty_dict"]
|
||||||
|
or empty_structures_props["empty_dict"]["type"] == "object"
|
||||||
|
)
|
||||||
|
|
||||||
local_variable_schema = paths["/edge_cases/local_variable"]["get"]["responses"][
|
local_variable_schema = paths["/edge_cases/local_variable"]["get"]["responses"][
|
||||||
"200"
|
"200"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue