Skip to content

Commit

Permalink
More cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
changeling committed Jun 4, 2019
1 parent 9472e89 commit 07b3e47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ one field: ``hello`` and an input name. And when we query it, it should return `
hello = String(argument=String(default_value="stranger"))
def resolve_hello(self, info, argument):
return "Hello " + argument
return f"Hello {argument}"
schema = Schema(query=Query)
Expand Down
2 changes: 1 addition & 1 deletion graphene/types/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
source and resolver
), "A Field cannot have a source and a resolver in at the same time."
assert not callable(default_value), (
'The default value can not be a function but received "{}".'
'The default value cannot be a function but received "{}".'
).format(base_type(default_value))

if required:
Expand Down
2 changes: 1 addition & 1 deletion graphene/types/tests/test_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_field_default_value_not_callable():
Field(MyType, default_value=lambda: True)
except AssertionError as e:
# substring comparison for py 2/3 compatibility
assert "The default value can not be a function but received" in str(e)
assert "The default value cannot be a function but received" in str(e)


def test_field_source():
Expand Down

0 comments on commit 07b3e47

Please sign in to comment.