Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 73 patch endpoint #165

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove method length assertion to 3
theultimate1 committed Aug 15, 2022
commit 321ed09513e9095eaac9f39cb424d1824bf6374b
5 changes: 2 additions & 3 deletions tests/test_openapi_schema.py
Original file line number Diff line number Diff line change
@@ -24,9 +24,8 @@ def test_schema_tags(self, client):
paths = schema["paths"]

assert len(paths) == len(PATH_TAGS)
print(paths.items())
for path, method in paths.items():
assert len(method) == 3

for m in method:
assert method[m]["tags"] == PATH_TAGS[path]

@@ -41,7 +40,7 @@ def test_response_types(self, client, path):
assert "422" in paths[path]["post"]["responses"]

item_path = path + "/{item_id}"
for method in ["get", "put", "delete"]:
for method in ["get", "put", "patch","delete"]:
assert "200" in paths[item_path][method]["responses"]
assert "404" in paths[item_path][method]["responses"]
assert "422" in paths[item_path][method]["responses"]