7 lines
267 B
Python
7 lines
267 B
Python
def test_graphql_endpoint_responds(db, graphql_post):
|
|
response, body = graphql_post("{ __schema { queryType { name } } }")
|
|
|
|
assert response.status_code == 200
|
|
assert "errors" not in body
|
|
assert body["data"]["__schema"]["queryType"]["name"] == "Query"
|