Skip to content
Myr

Added missing import.

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

As this specific code block lists imports in general and an import from the `flask` package specifically, it should also include `g` for the sake of completeness.

authored by Jochen Kupperschmidt · committed by Jochen Kupperschmidt · parent 5b98266 · 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
274 unmodified lines
275having to change some code. This can trivially be accomplished with276hooking the :data:`flask.appcontext_pushed` signal::277278 from contextlib import contextmanager279 from flask import appcontext_pushed279 from flask import appcontext_pushed, g280281 @contextmanager282 def user_set(app, user):283 def handler(sender, **kwargs):
70 unmodified lines