graphene/examples/starwars/tests/test_schema.py

10 lines
200 B
Python
Raw Normal View History

2016-06-15 08:27:25 +03:00
from ..schema import Droid
def test_query_types():
graphql_type = Droid._meta.graphql_type
fields = graphql_type.get_fields()
assert fields['friends'].parent == Droid
2016-06-15 08:27:25 +03:00
assert fields