Skip to content

Commit 8cdd01e

Browse files
committed
Test added for _AppCtxGlobals __repr__ method
1 parent 54869a0 commit 8cdd01e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_appctx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def test_app_ctx_globals_methods(app, app_ctx):
159159
assert flask.g.pop('bar', 'more cake') == 'more cake'
160160
# __iter__
161161
assert list(flask.g) == ['foo']
162+
#__repr__
163+
assert flask.g.__repr__() == '<flask.g of \'flask_test\'>'
162164

163165

164166
def test_custom_app_ctx_globals_class(app):

0 commit comments

Comments
 (0)