forked from orbit-oss/flask
fix docstring and remove redundant parentheses
This commit is contained in:
parent
ab6e630194
commit
5da342e4dd
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue