From 37ad9a34837eb0eb6608c27e694701ae402157ba Mon Sep 17 00:00:00 2001 From: Pedro Mantica Date: Mon, 25 Mar 2019 17:52:36 -0400 Subject: [PATCH] Changed list equality to set equality --- graphql_compiler/tests/test_schema_generation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphql_compiler/tests/test_schema_generation.py b/graphql_compiler/tests/test_schema_generation.py index ecffe1aa0..9ff7f8f67 100644 --- a/graphql_compiler/tests/test_schema_generation.py +++ b/graphql_compiler/tests/test_schema_generation.py @@ -253,7 +253,7 @@ def test_type_equivalence_dicts(self): self.assertEqual(person, schema.get_type('Person')) # Assert that the union consists of the Baby and Person classes - self.assertEqual(person_baby_union.types, [baby, person]) + self.assertEqual(set(person_baby_union.types), set(baby, person)) # Assert that arbitrarily chosen inherited property is still correctly inherited self.assertTrue(baby.fields['name'].type.is_same_type(GraphQLString))