Browse Source

Merge pull request #2807 from eso31/master

Test added for _AppCtxGlobals __repr__ method
pull/2808/head
David Lord 7 years ago committed by GitHub
parent
commit
8080ead523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tests/test_appctx.py

2
tests/test_appctx.py

@ -159,6 +159,8 @@ def test_app_ctx_globals_methods(app, app_ctx):
assert flask.g.pop('bar', 'more cake') == 'more cake' assert flask.g.pop('bar', 'more cake') == 'more cake'
# __iter__ # __iter__
assert list(flask.g) == ['foo'] assert list(flask.g) == ['foo']
#__repr__
assert repr(flask.g) == "<flask.g of 'flask_test'>"
def test_custom_app_ctx_globals_class(app): def test_custom_app_ctx_globals_class(app):

Loading…
Cancel
Save