Skip to content

Commit 271b447

Browse files
committed
Make sanic v22.9 work
1 parent 80d3f7c commit 271b447

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"pytest>=7.2,<8",
1212
"pytest-asyncio>=0.20,<1",
1313
"pytest-cov>=4,<5",
14-
"sanic-testing>=22.3,<22.7",
14+
"sanic-testing>=22.3,<23",
1515
]
1616

1717
dev_requires = [
@@ -27,7 +27,7 @@
2727
]
2828

2929
install_sanic_requires = [
30-
"sanic>=21.12,<22.7",
30+
"sanic>=21.12,<23",
3131
]
3232

3333
install_webob_requires = [

tests/sanic/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import uuid
12
from urllib.parse import urlencode
23

34
from sanic import Sanic
@@ -6,11 +7,10 @@
67

78
from .schema import Schema
89

9-
Sanic.test_mode = True
10-
1110

1211
def create_app(path="/graphql", **kwargs):
13-
app = Sanic("TestApp")
12+
random_valid_app_name = f"App{uuid.uuid4().hex}"
13+
app = Sanic(random_valid_app_name)
1414

1515
schema = kwargs.pop("schema", None) or Schema
1616
app.add_route(GraphQLView.as_view(schema=schema, **kwargs), path)

0 commit comments

Comments
 (0)