Skip to content

Commit

Permalink
Fixed PEP8 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Nov 19, 2015
1 parent b91ae4b commit 3712542
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions graphene/contrib/django/tests/test_types.py
Expand Up @@ -89,6 +89,7 @@ def test_interface_objecttype_init_unexpected():
Human(object())
assert str(excinfo.value) == "Human received a non-compatible instance (object) when expecting Article"


def test_object_type():
object_type = schema.T(Human)
Human._meta.fields_map
Expand Down
1 change: 1 addition & 0 deletions graphene/core/types/field.py
Expand Up @@ -79,6 +79,7 @@ def internal_type(self, schema):
resolver = getattr(type_objecttype, 'mutate')
else:
my_resolver = resolver

@wraps(my_resolver)
def wrapped_func(instance, args, info):
if not isinstance(instance, self.object_type):
Expand Down

0 comments on commit 3712542

Please sign in to comment.