Skip to content

Commit 6d661f2

Browse files
committed
Fix tests
1 parent c682cc7 commit 6d661f2

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

tests/test_graphiqlview.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def pretty_response():
1919

2020
@parametrize_sync_async_app_test('app', graphiql=True)
2121
def test_graphiql_is_enabled(app):
22-
_, response = app.client.get( uri=url_string(), headers={'Accept': 'text/html'})
22+
_, response = app.client.get(uri=url_string(query="{test}"), headers={'Accept': 'text/html'})
2323
assert response.status == 200
2424

2525

@@ -50,14 +50,6 @@ def test_graphiql_html_is_not_accepted(app):
5050
assert response.status == 400
5151

5252

53-
@parametrize_sync_async_app_test('app', graphiql=True)
54-
def test_graphiql_get_mutation(app, pretty_response):
55-
query = 'mutation TestMutation { writeTest { test } }'
56-
_, response = app.client.get(uri=url_string(query=query), headers={'Accept': 'text/html'})
57-
assert response.status == 200
58-
assert 'response: null' in response.body.decode('utf-8')
59-
60-
6153
@pytest.mark.parametrize('app', [create_app(async_executor=True, graphiql=True, schema=AsyncSchema)])
6254
def test_graphiql_asyncio_schema(app):
6355
query = '{a,b,c}'

0 commit comments

Comments
 (0)