From a26e8aafd7ea9a1ceb68b02d8ebec2eb4e6faa96 Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Sat, 12 Oct 2019 00:24:04 +0200 Subject: [PATCH] Avoid sporadic test failure by using OrderedDict --- graphql/utils/tests/test_build_client_schema.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/graphql/utils/tests/test_build_client_schema.py b/graphql/utils/tests/test_build_client_schema.py index 557118d1..84b3b53c 100644 --- a/graphql/utils/tests/test_build_client_schema.py +++ b/graphql/utils/tests/test_build_client_schema.py @@ -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 @@ -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)] + ), ) }, ),