Skip to content
Myr

Merge pull request #1491 from nvie/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Remove the word `trivially` here

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents b471df6, a4b335a · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/testing.rst+1 added-1 removed
272 unmodified lines
273 g.user = user274 return user275276For a test it would be nice to override this user from the outside without277having to change some code. This can trivially be accomplished with277having to change some code. This can be accomplished with278hooking the :data:`flask.appcontext_pushed` signal::279280 from contextlib import contextmanager281 from flask import appcontext_pushed, g
74 unmodified lines