Skip to content

Commit 418613d

Browse files
committed
Add one more strict_ordering tests.
1 parent 92bff0f commit 418613d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/core_execution/test_executor.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,16 @@ def test_fails_to_execute_a_query_containing_a_type_definition():
454454
assert excinfo.value.message == 'GraphQL cannot execute a request containing a ObjectTypeDefinition.'
455455

456456

457+
def test_executor_detects_strict_ordering():
458+
executor = Executor()
459+
assert not executor.enforce_strict_ordering
460+
assert executor.map_type is dict
461+
462+
executor = Executor(map_type=OrderedDict)
463+
assert executor.enforce_strict_ordering
464+
assert executor.map_type is OrderedDict
465+
466+
457467
def test_executor_can_enforce_strict_ordering():
458468
Type = GraphQLObjectType('Type', lambda: {
459469
'a': GraphQLField(GraphQLString,

0 commit comments

Comments
 (0)