Skip to content

Commit c25e450

Browse files
committed
test_subscription: standardize generator names
Replicates graphql/graphql-js@d695f53
1 parent 739bcce commit c25e450

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/subscription/test_subscribe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ async def accepts_multiple_subscription_fields_defined_in_schema():
156156
),
157157
)
158158

159-
async def foo_gen(_info):
159+
async def foo_generator(_info):
160160
yield {"foo": "FooValue"}
161161

162162
subscription = await subscribe(
163-
schema, parse("subscription { foo }"), {"foo": foo_gen}
163+
schema, parse("subscription { foo }"), {"foo": foo_generator}
164164
)
165165
assert isinstance(subscription, MapAsyncIterator)
166166

0 commit comments

Comments
 (0)