Skip to content
Myr

Merge pull request #2807 from eso31/master

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

Test added for _AppCtxGlobals __repr__ method

authored by David Lord · committed by GitHub · parents 79fc8e5, 8fa3ed1 · Browse files · 1 file+2 added−0 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+2 added−0 removed

  • tests:+2 added−0 removed

1 file+2 added−0 removed

modified:tests/test_appctx.py+2 added
157 unmodified lines
158 flask.g.pop('bar')159 assert flask.g.pop('bar', 'more cake') == 'more cake'160 # __iter__161 assert list(flask.g) == ['foo']162 #__repr__163 assert repr(flask.g) == "<flask.g of 'flask_test'>"164165166def test_custom_app_ctx_globals_class(app):167 class CustomRequestGlobals(object):
54 unmodified lines