We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bc1495 commit aa2f4c5Copy full SHA for aa2f4c5
graphene/core/tests/test_schema.py
@@ -132,6 +132,21 @@ class MyType(ObjectType):
132
assert schema.get_type('MyType') == MyType
133
134
135
+def test_schema_register_interfaces():
136
+ class Query(ObjectType):
137
+ f = Field(Character)
138
+
139
+ def resolve_f(self, args, info):
140
+ return Human()
141
142
+ schema = Schema(query=Query)
143
144
+ schema.register(Human)
145
146
+ result = schema.execute('{ f { name } }')
147
+ assert not result.errors
148
149
150
def test_schema_register_no_query_type():
151
schema = Schema(name='My own schema')
152
0 commit comments