We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92bff0f commit 418613dCopy full SHA for 418613d
tests/core_execution/test_executor.py
@@ -454,6 +454,16 @@ def test_fails_to_execute_a_query_containing_a_type_definition():
454
assert excinfo.value.message == 'GraphQL cannot execute a request containing a ObjectTypeDefinition.'
455
456
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
467
def test_executor_can_enforce_strict_ordering():
468
Type = GraphQLObjectType('Type', lambda: {
469
'a': GraphQLField(GraphQLString,
0 commit comments