You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, running the command above against `https://bahnql.herokuapp.com/graphql` uncovers that running the `{ search(searchTerm: "") { stations { name } } }` query leads to a server error:
22
22
23
-
@schema.parametrize()
24
-
@settings(deadline=None)
25
-
deftest_api(case):
26
-
response = case.call()
27
-
case.validate_response(response)
28
23
```
29
-
30
-
Then run `pytest test_api.py`. Note that you can write your app in any programming language; the tool will communicate with it over HTTP.
31
-
32
-
Schemathesis will generate valid queries automatically based on the schema and will minimize failing cases.
33
-
For example, running the code above against `https://bahnql.herokuapp.com/graphql` uncovers that running the `{ search(searchTerm: "") { stations { name } } }` query leads to a server error:
34
-
35
-
```
36
-
{"errors":[{"message":"Cannot read property \'city\' of undefined","locations":[{"line":1,"column":28}],"path":["search","stations"]}],"data":null}
24
+
{
25
+
"errors": [
26
+
{
27
+
"message": "Cannot read property 'city' of undefined",
0 commit comments