Skip to content
Myr

Remove the word `trivially` here

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

A lot of things are trivial, or debatably trivial, but this is not one of them :)

authored by Vincent Driessen · committed by Vincent Driessen · parent b471df6 · 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