Fixed tests

This commit is contained in:
Syrus Akbary 2015-11-11 00:55:15 -08:00
parent 862fa6f312
commit bdcd533bf9
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ def test_type_as_field_called(Field):
def test_type_as_argument_called(Argument):
a = MountedType(2, description='A')
a.as_argument()
Argument.assert_called_with(MountedType, 2, _creation_counter=a.creation_counter, description='A')
Argument.assert_called_with(a, 2, _creation_counter=a.creation_counter, description='A')
def test_type_as_field():

View File

@ -8,7 +8,7 @@ from graphene.core.schema import Schema
def test_field_internal_type():
resolver = lambda *args: args
resolver = lambda *args: 'RESOLVED'
field = Field(String, description='My argument', resolver=resolver)
@ -21,7 +21,7 @@ def test_field_internal_type():
assert field.attname == 'my_field'
assert isinstance(type, GraphQLField)
assert type.description == 'My argument'
assert type.resolver == resolver
assert type.resolver(None, {}, None) == 'RESOLVED'
assert type.type == GraphQLString