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 3985401 commit bdbdbb5Copy full SHA for bdbdbb5
README.md
@@ -26,6 +26,7 @@ GraphQL queries matching the schema:
26
```python
27
from hypothesis import given
28
from hypothesis_graphql import from_schema
29
+import requests
30
31
# Strings and `graphql.GraphQLSchema` are supported
32
SCHEMA = """
@@ -66,7 +67,9 @@ def test_graphql(query):
66
67
# title
68
# }
69
- ...
70
+ response = requests.post("http://127.0.0.1/graphql", json={"query": query})
71
+ assert response.status_code == 200
72
+ assert response.json().get("errors") is None
73
```
74
75
It is also possible to generate queries or mutations separately with `hypothesis_graphql.queries` and `hypothesis_graphql.mutations`.
0 commit comments