8000 Fix minor formatting issues · graphql-python/graphql-core@1990bdc · GitHub
[go: up one dir, main page]

Skip to content

Commit 1990bdc

Browse files
committed
Fix minor formatting issues
1 parent 8ebf563 commit 1990bdc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/execution/test_subscribe.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from pytest import mark, raises
55

66
from graphql.execution import (
7+
ExecutionContext,
8+
MapAsyncIterator,
79
create_source_event_stream,
810
subscribe,
9-
MapAsyncIterator,
10-
ExecutionContext,
1111
)
1212
from graphql.language import parse
1313
from graphql.pyutils import SimplePubSub
@@ -903,11 +903,11 @@ async def should_work_with_custom_execution_contexts():
903903
class CustomExecutionContext(ExecutionContext):
904904
def build_resolve_info(self, *args, **kwargs):
905905
resolve_info = super().build_resolve_info(*args, **kwargs)
906-
resolve_info.context['foo'] = 'bar'
906+
resolve_info.context["foo"] = "bar"
907907
return resolve_info
908908

909909
async def generate_messages(_obj, info):
910-
yield info.context['foo']
910+
yield info.context["foo"]
911911

912912
def resolve_message(message, _info):
913913
return message
@@ -931,7 +931,7 @@ def resolve_message(message, _info):
931931
schema,
932932
document,
933933
context_value={},
934-
execution_context_class=CustomExecutionContext
934+
execution_context_class=CustomExecutionContext,
935935
)
936936
assert isinstance(subscription, MapAsyncIterator)
937937

0 commit comments

Comments
 (0)
0