Skip to content

Commit ddfe787

Browse files
committed
Pass app fixture on graphiqlview
1 parent 5accc9f commit ddfe787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_graphiqlview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_graphiql_renders_pretty(client):
2323
' "test": "Hello World"\n'
2424
' }\n'
2525
'}'
26-
).replace("\"","\\\"").replace("\n","\\n")
26+
).replace("\"", "\\\"").replace("\n", "\\n")
2727

2828
assert pretty_response in response.data.decode('utf-8')
2929

@@ -34,6 +34,6 @@ def test_graphiql_default_title(client):
3434

3535

3636
@pytest.mark.parametrize('app', [create_app(graphiql=True, graphiql_html_title="Awesome")])
37-
def test_graphiql_custom_title(client):
37+
def test_graphiql_custom_title(app, client):
3838
response = client.get(url_for('graphql'), headers={'Accept': 'text/html'})
3939
assert '<title>Awesome</title>' in response.data.decode('utf-8')

0 commit comments

Comments
 (0)