Files
neuf-www/dnscms/tests/test_graphql.py
T
2026-05-19 04:42:27 +02:00

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"