Skip to content

Commit a26e8aa

Browse files
committed
Avoid sporadic test failure by using OrderedDict
1 parent 5e0d87a commit a26e8aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: graphql/utils/tests/test_build_client_schema.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _test_schema(server_schema):
3838
second_introspection = graphql(client_schema, introspection_query)
3939
assert contain_subset(
4040
initial_introspection.data, second_introspection.data
41-
), "\n%s\n%s" % (initial_introspection.data, second_introspection.data)
41+
), "\n{}\n{}".format(initial_introspection.data, second_introspection.data)
4242

4343
return client_schema
4444

@@ -478,7 +478,9 @@ def test_builds_a_schema_with_field_arguments_with_default_values():
478478
args={
479479
"objArg": GraphQLArgument(
480480
GeoType,
481-
default_value={"lat": 37.485, "lon": -122.148},
481+
default_value=OrderedDict(
482+
[("lat", 37.485), ("lon", -122.148)]
483+
),
482484
)
483485
},
484486
),

0 commit comments

Comments
 (0)