Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Mantica committed Mar 25, 2019
1 parent 080035c commit d65dac0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions graphql_compiler/tests/test_schema_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def test_type_equivalence_dicts(self):
baby = schema.get_type('Baby')
location = schema.get_type('Location')

# Assert that the Person class is marked as type equivalent to the Person-Baby union
# Assert that the Person class is part of the schema.
self.assertEqual(person, schema.get_type('Person'))

# Assert that the union consist of the Baby and Person classes
Expand All @@ -226,6 +226,3 @@ def test_type_equivalence_dicts(self):
self.assertTrue(person.fields['out_Person_LivesIn'].type.is_same_type(location_list_type))
self.assertTrue(baby.fields['out_Person_LivesIn'].type.is_same_type(location_list_type))
self.assertTrue(location.fields['in_Person_LivesIn'].type.is_same_type(union_list_type))

def validate_type_matching(self, prop, graphql_type):
"""Validate that the GraphQL type matches what we expect it to be."""

0 comments on commit d65dac0

Please sign in to comment.