fix docstring and remove redundant parentheses

This commit is contained in:
Marc Hernandez Cabot 2019-12-19 21:40:40 +01:00 committed by David Lord
parent ab6e630194
commit 5da342e4dd
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ class _AppCtxGlobals(object):
set and return a default value. Like :meth:`dict.setdefault`.
:param name: Name of attribute to get.
:param: default: Value to set and return if the attribute is not
:param default: Value to set and return if the attribute is not
present.
.. versionadded:: 0.11

View file

@ -1689,7 +1689,7 @@ def test_routing_redirect_debugging(app, client):
with pytest.raises(AssertionError) as e:
client.post("/foo", data={})
assert "http://localhost/foo/" in str(e.value)
assert ("Make sure to directly send your POST-request to this URL") in str(
assert "Make sure to directly send your POST-request to this URL" in str(
e.value
)