Skip to content

Commit 8059fd3

Browse files
committed
refactor: remove pytest-asyncio
1 parent 2934429 commit 8059fd3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
tests_requires = [
88
"pytest>=5.3,<5.4",
99
"pytest-cov>=2.8,<3",
10-
"pytest-asyncio>=0.10,<1"
1110
]
1211

1312
dev_requires = [

tests/test_asyncio.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
)
88
from graphql.type.scalars import GraphQLString
99
from graphql.type.schema import GraphQLSchema
10-
from pytest import mark
1110

1211
from graphql_server import GraphQLParams, run_http_query
1312

@@ -47,7 +46,6 @@ async def resolve_field_async(_obj, info):
4746
schema = GraphQLSchema(QueryRootType)
4847

4948

50-
@mark.asyncio
5149
def test_get_responses_using_asyncio_executor():
5250
query = "{fieldSync fieldAsync}"
5351

@@ -57,8 +55,8 @@ async def get_results():
5755
result_promises, params = run_http_query(
5856
schema, "get", {}, dict(query=query), run_sync=False
5957
)
60-
results = [await result for result in result_promises]
61-
return results, params
58+
res = [await result for result in result_promises]
59+
return res, params
6260

6361
try:
6462
results, params = loop.run_until_complete(get_results())

0 commit comments

Comments
 (0)