Skip to content

Commit 2e5ab8e

Browse files
committed
Use same names as arguments in directive tests
Replicates graphql/graphql-js@84c3c40
1 parent 8ecd28f commit 2e5ab8e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/execution/test_directives.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111

1212

1313
# noinspection PyMethodMayBeStatic
14-
class Data:
14+
class RootValue:
1515
def a(self, *_args):
1616
return "a"
1717

1818
def b(self, *_args):
1919
return "b"
2020

2121

22-
def execute_test_query(doc):
23-
return execute(schema, parse(doc), Data)
22+
def execute_test_query(query):
23+
document = parse(query)
24+
return execute(schema, document, RootValue())
2425

2526

2627
def describe_execute_handles_directives():

0 commit comments

Comments
 (0)