File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11
11
"pytest>=7.2,<8" ,
12
12
"pytest-asyncio>=0.20,<1" ,
13
13
"pytest-cov>=4,<5" ,
14
- "sanic-testing>=22.3,<22.7 " ,
14
+ "sanic-testing>=22.3,<23 " ,
15
15
]
16
16
17
17
dev_requires = [
27
27
]
28
28
29
29
install_sanic_requires = [
30
- "sanic>=21.12,<22.7 " ,
30
+ "sanic>=21.12,<23 " ,
31
31
]
32
32
33
33
install_webob_requires = [
Original file line number Diff line number Diff line change
1
+ import uuid
1
2
from urllib .parse import urlencode
2
3
3
4
from sanic import Sanic
6
7
7
8
from .schema import Schema
8
9
9
- Sanic .test_mode = True
10
-
11
10
12
11
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 )
14
14
15
15
schema = kwargs .pop ("schema" , None ) or Schema
16
16
app .add_route (GraphQLView .as_view (schema = schema , ** kwargs ), path )
You can’t perform that action at this time.
0 commit comments