Test all HTTP methods

This commit is contained in:
Sebastián Ramírez
2018-12-22 18:18:19 +04:00
parent bf6d923ca8
commit 613c3f3e95
2 changed files with 284 additions and 0 deletions

View File

@@ -84,6 +84,12 @@ openapi_schema = {
}
def test_openapi_schema():
response = client.get("/openapi.json")
assert response.status_code == 200
assert response.json() == openapi_schema
@pytest.mark.parametrize(
"path,expected_status,expected_response",
[