File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 44from pytest import mark , raises
55
66from graphql .execution import (
7+ ExecutionContext ,
8+ MapAsyncIterator ,
79 create_source_event_stream ,
810 subscribe ,
9- MapAsyncIterator ,
10- ExecutionContext ,
1111)
1212from graphql .language import parse
1313from 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
You can’t perform that action at this time.
0 commit comments