Add group parameter feature

This commit is contained in:
Vincent Maillol
2021-09-26 19:08:39 +02:00
parent 4a49d3b53d
commit 799080bbd0
11 changed files with 472 additions and 34 deletions

View File

@@ -123,18 +123,12 @@ def test_paths_operation_tags():
oas = OpenApiSpec3()
operation = oas.paths["/users/{petId}"].get
assert operation.tags == []
operation.tags = ['pets']
operation.tags = ["pets"]
assert oas.spec['paths']['/users/{petId}'] == {
'get': {
'tags': ['pets']
}
}
assert oas.spec["paths"]["/users/{petId}"] == {"get": {"tags": ["pets"]}}
operation.tags = []
assert oas.spec['paths']['/users/{petId}'] == {
'get': {}
}
assert oas.spec["paths"]["/users/{petId}"] == {"get": {}}
def test_paths_operation_responses():