forked from orbit-oss/flask
rewrite testing docs
This commit is contained in:
parent
d6496c8e29
commit
761d7e1652
2 changed files with 283 additions and 427 deletions
|
|
@ -168,9 +168,9 @@ thing, like it does for :class:`request` and :class:`session`.
|
|||
:attr:`Flask.app_ctx_globals_class`, which defaults to
|
||||
:class:`ctx._AppCtxGlobals`.
|
||||
|
||||
This is a good place to store resources during a request. During
|
||||
testing, you can use the :ref:`faking-resources` pattern to
|
||||
pre-configure such resources.
|
||||
This is a good place to store resources during a request. For
|
||||
example, a ``before_request`` function could load a user object from
|
||||
a session id, then set ``g.user`` to be used in the view function.
|
||||
|
||||
This is a proxy. See :ref:`notes-on-proxies` for more information.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue