mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 04:07:16 +03:00
Fixed tests
This commit is contained in:
parent
862fa6f312
commit
bdcd533bf9
|
@ -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():
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user