pre-commit-ci-lite[bot]
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
7 additions and
2 deletions
-
tests/test_ast_inference.py
|
|
|
@ -317,8 +317,13 @@ def test_openapi_schema_ast_inference(): |
|
|
|
"properties" |
|
|
|
] |
|
|
|
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 "type" not in empty_structures_props["empty_dict"] or empty_structures_props["empty_dict"]["type"] == "object" |
|
|
|
assert "items" not in empty_structures_props[ |
|
|
|
"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"][ |
|
|
|
"200" |
|
|
|
|