async def test_graphiql_get_mutation(app, client):
    response = await client.get(
        url_string(query="mutation TestMutation { writeTest { test } }"),
        headers={"Accept": "text/html"},
    )
    assert response.status == 200
    assert "response: null" in await response.text()
async def test_graphiql_async_schema(app, client):
    response = await client.get(
        url_string(query="{a,b,c}"), headers={"Accept": "text/html"},
    )

    assert response.status == 200
    assert await response.json() == {"data": {"a": "hey", "b": "hey2", "c": "hey3"}}
async def test_graphiql_get_subscriptions(app, client):
    response = await client.get(
        url_string(
            query="subscription TestSubscriptions { subscriptionsTest { test } }"
        ),
        headers={"Accept": "text/html"},
    )
    assert response.status == 200
    assert "response: null" in await response.text()
 async def test_graphiql_jinja_renderer_async(self, app, client, pretty_response):
     response = await client.get(
         url_string(query="{test}"), headers={"Accept": "text/html"},
     )
     assert response.status == 200
     assert pretty_response in await response.text()
async def test_graphiql_is_enabled(app, client):
    response = await client.get(
        url_string(query="{test}"), headers={"Accept": "text/html"}
    )
    assert response.status == 200