We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23c720a commit bbb08b8Copy full SHA for bbb08b8
tests/test_openapi.py
@@ -108,16 +108,13 @@ def dict_is_openapi(d):
108
return True
109
110
111
-def test_openapi_json_endpoint(thing):
112
- c = thing.app.test_client()
113
- r = c.get("/docs/openapi")
+def test_openapi_json_endpoint(thing, client):
+ r = client.get("/docs/openapi")
114
assert r.status_code == 200
115
assert dict_is_openapi(r.get_json())
116
117
118
-def test_openapi_yaml_endpoint(thing):
119
120
-
121
- r = c.get("/docs/openapi.yaml")
+def test_openapi_yaml_endpoint(thing, client):
+ r = client.get("/docs/openapi.yaml")
122
123
assert dict_is_openapi(yaml.safe_load(r.data))
0 commit comments