Skip to content

Commit 0844623

Browse files
committed
Refactored executor tests
1 parent 5385c83 commit 0844623

File tree

5 files changed

+231
-369
lines changed

5 files changed

+231
-369
lines changed

graphql/execution/tests/test_concurrent_executor.py

Lines changed: 0 additions & 365 deletions
This file was deleted.

graphql/execution/tests/test_gevent.py renamed to graphql/execution/tests/test_executor_gevent.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from ..execute import execute
1111
from ..executors.gevent import GeventExecutor
12+
from .test_mutations import assert_evaluate_mutations_serially
1213

1314

1415
def test_gevent_executor():
@@ -55,3 +56,7 @@ def resolver_2(context, *_):
5556
formatted_errors = list(map(format_error, result.errors))
5657
assert formatted_errors == [{'locations': [{'line': 1, 'column': 20}], 'message': 'resolver_2 failed!'}]
5758
assert result.data == {'a': 'hey', 'b': None}
59+
60+
61+
def test_evaluates_mutations_serially():
62+
assert_evaluate_mutations_serially(executor=GeventExecutor())

0 commit comments

Comments
 (0)