Skip to content

Commit 27c8876

Browse files
committed
Test keyword arguments properly in test_subscribe
1 parent 682e044 commit 27c8876

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/subscription/test_subscribe.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def send_important_email(new_email):
128128
# Check all error cases when initializing the subscription.
129129
def describe_subscription_initialization_phase():
130130
@mark.asyncio
131-
async def accepts_an_object_with_named_properties_as_arguments():
131+
async def accepts_keyword_arguments():
132132
document = parse(
133133
"""
134134
subscription {
@@ -142,7 +142,9 @@ async def empty_async_iterator(_info):
142142
yield value
143143

144144
await subscribe(
145-
email_schema, document, {"importantEmail": empty_async_iterator}
145+
schema=email_schema,
146+
document=document,
147+
root_value={"importantEmail": empty_async_iterator},
146148
)
147149

148150
@mark.asyncio

0 commit comments

Comments
 (0)