graphene/examples/starwars/tests/test_schema.py
2016-06-14 22:29:02 -07:00

10 lines
200 B
Python

from ..schema import Droid
def test_query_types():
graphql_type = Droid._meta.graphql_type
fields = graphql_type.get_fields()
assert fields['friends'].parent == Droid
assert fields