@@ -112,14 +112,14 @@ def deeper(self):
112112 })
113113
114114 schema = GraphQLSchema (query = DataType )
115- executor = Executor (schema )
115+ executor = Executor ()
116116
117117 def handle_result (result ):
118118 assert not result .errors
119119 assert result .data == expected
120120
121- raise_callback_results (executor .execute (doc , Data (), {'size' : 100 }, 'Example' ), handle_result )
122- raise_callback_results (executor .execute (doc , Data (), {'size' : 100 }, 'Example' , execute_serially = True ),
121+ raise_callback_results (executor .execute (schema , doc , Data (), {'size' : 100 }, 'Example' ), handle_result )
122+ raise_callback_results (executor .execute (schema , doc , Data (), {'size' : 100 }, 'Example' , execute_serially = True ),
123123 handle_result )
124124
125125
@@ -142,9 +142,9 @@ def notPromise(self):
142142 }
143143 '''
144144 schema = GraphQLSchema (query = DataType )
145- executor = Executor (schema , [SynchronousExecutionMiddleware ()])
145+ executor = Executor ([SynchronousExecutionMiddleware ()])
146146
147- result = executor .execute (doc , Data (), operation_name = 'Example' )
147+ result = executor .execute (schema , doc , Data (), operation_name = 'Example' )
148148 assert not isinstance (result , Deferred )
149149 assert result .data == {"promise" : None , 'notPromise' : 'i should work' }
150150 formatted_errors = list (map (format_error , result .errors ))
@@ -172,9 +172,9 @@ def notPromise(self):
172172 }
173173 '''
174174 schema = GraphQLSchema (query = DataType )
175- executor = Executor (schema , [SynchronousExecutionMiddleware ()])
175+ executor = Executor ([SynchronousExecutionMiddleware ()])
176176
177- result = executor .execute (doc , Data (), operation_name = 'Example' )
177+ result = executor .execute (schema , doc , Data (), operation_name = 'Example' )
178178 assert not isinstance (result , Deferred )
179179 assert result .data is None
180180 formatted_errors = list (map (format_error , result .errors ))
@@ -202,9 +202,9 @@ def notPromise(self):
202202 }
203203 '''
204204 schema = GraphQLSchema (query = DataType )
205- executor = Executor (schema )
205+ executor = Executor ()
206206
207- result = executor .execute (doc , Data (), operation_name = 'Example' )
207+ result = executor .execute (schema , doc , Data (), operation_name = 'Example' )
208208 assert result .called
209209 result = result .result
210210 assert result .data is None
@@ -227,9 +227,9 @@ def promise(self):
227227 }
228228 '''
229229 schema = GraphQLSchema (query = DataType )
230- executor = Executor (schema , [SynchronousExecutionMiddleware ()])
230+ executor = Executor ([SynchronousExecutionMiddleware ()])
231231
232- result = executor .execute (doc , Data (), operation_name = 'Example' )
232+ result = executor .execute (schema , doc , Data (), operation_name = 'Example' )
233233 assert not isinstance (result , Deferred )
234234 assert result .data == {"promise" : 'I should work' }
235235 assert not result .errors
0 commit comments