Skip to content

Commit bdcd533

Browse files
committed
Fixed tests
1 parent 862fa6f commit bdcd533

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

graphene/core/types/tests/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_type_as_field_called(Field):
3333
def test_type_as_argument_called(Argument):
3434
a = MountedType(2, description='A')
3535
a.as_argument()
36-
Argument.assert_called_with(MountedType, 2, _creation_counter=a.creation_counter, description='A')
36+
Argument.assert_called_with(a, 2, _creation_counter=a.creation_counter, description='A')
3737

3838

3939
def test_type_as_field():

graphene/core/types/tests/test_field.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
def test_field_internal_type():
11-
resolver = lambda *args: args
11+
resolver = lambda *args: 'RESOLVED'
1212

1313
field = Field(String, description='My argument', resolver=resolver)
1414

@@ -21,7 +21,7 @@ class Query(ObjectType):
2121
assert field.attname == 'my_field'
2222
assert isinstance(type, GraphQLField)
2323
assert type.description == 'My argument'
24-
assert type.resolver == resolver
24+
assert type.resolver(None, {}, None) == 'RESOLVED'
2525
assert type.type == GraphQLString
2626

2727

0 commit comments

Comments
 (0)