Skip to content

Commit 8080ead

Browse files
authored
Merge pull request pallets#2807 from eso31/master
Test added for _AppCtxGlobals __repr__ method
2 parents 79fc8e5 + 8fa3ed1 commit 8080ead

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 repr(flask.g) == "<flask.g of 'flask_test'>"
162164

163165

164166
def test_custom_app_ctx_globals_class(app):

0 commit comments

Comments
 (0)