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 b91ae4b commit 3712542Copy full SHA for 3712542
graphene/contrib/django/tests/test_types.py
@@ -89,6 +89,7 @@ def test_interface_objecttype_init_unexpected():
89
Human(object())
90
assert str(excinfo.value) == "Human received a non-compatible instance (object) when expecting Article"
91
92
+
93
def test_object_type():
94
object_type = schema.T(Human)
95
Human._meta.fields_map
graphene/core/types/field.py
@@ -79,6 +79,7 @@ def internal_type(self, schema):
79
resolver = getattr(type_objecttype, 'mutate')
80
else:
81
my_resolver = resolver
82
83
@wraps(my_resolver)
84
def wrapped_func(instance, args, info):
85
if not isinstance(instance, self.object_type):
0 commit comments