Skip to content

Commit

Permalink
Changed list equality to set equality
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Mantica committed Mar 25, 2019
1 parent 1368439 commit 37ad9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql_compiler/tests/test_schema_generation.py
Expand Up @@ -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))
Expand Down

0 comments on commit 37ad9a3

Please sign in to comment.