Test added for _AppCtxGlobals __repr__ method
This commit is contained in:
parent
54869a0017
commit
8cdd01ea5d
1 changed files with 2 additions and 0 deletions
|
|
@ -159,6 +159,8 @@ def test_app_ctx_globals_methods(app, app_ctx):
|
|||
assert flask.g.pop('bar', 'more cake') == 'more cake'
|
||||
# __iter__
|
||||
assert list(flask.g) == ['foo']
|
||||
#__repr__
|
||||
assert flask.g.__repr__() == '<flask.g of \'flask_test\'>'
|
||||
|
||||
|
||||
def test_custom_app_ctx_globals_class(app):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue