Skip to content

Commit 60634ef

Browse files
committed
Fixed tests
1 parent ebe059f commit 60634ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
required_packages = [
44
'graphql-core>=1.0',
55
'graphql-server-core>=1.0.dev',
6-
'sanic>=0.4.0',
6+
'sanic>=0.5.1',
77
'pytest-runner'
88
]
99

tests/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from urllib.parse import urlencode
77

88
from sanic import Sanic
9-
from sanic.testing import TestClient
9+
from sanic.testing import SanicTestClient
1010
from sanic_graphql import GraphQLView
1111
from graphql.execution.executors.asyncio import AsyncioExecutor
1212

@@ -32,7 +32,7 @@ def remove_graphql_endpoint(app, loop):
3232
else:
3333
app.add_route(GraphQLView.as_view(schema=schema, **kwargs), path)
3434

35-
app.client = TestClient(app)
35+
app.client = SanicTestClient(app)
3636
return app
3737

3838

0 commit comments

Comments
 (0)