Skip to content

Commit

Permalink
Avoid sporadic test failure by using OrderedDict
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Oct 11, 2019
1 parent 5e0d87a commit a26e8aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions graphql/utils/tests/test_build_client_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _test_schema(server_schema):
second_introspection = graphql(client_schema, introspection_query)
assert contain_subset(
initial_introspection.data, second_introspection.data
), "\n%s\n%s" % (initial_introspection.data, second_introspection.data)
), "\n{}\n{}".format(initial_introspection.data, second_introspection.data)

return client_schema

Expand Down Expand Up @@ -478,7 +478,9 @@ def test_builds_a_schema_with_field_arguments_with_default_values():
args={
"objArg": GraphQLArgument(
GeoType,
default_value={"lat": 37.485, "lon": -122.148},
default_value=OrderedDict(
[("lat", 37.485), ("lon", -122.148)]
),
)
},
),
Expand Down

0 comments on commit a26e8aa

Please sign in to comment.