mirror of
https://github.com/pallets-eco/flask-debugtoolbar.git
synced 2026-05-06 08:29:48 -05:00
12 lines
276 B
Python
12 lines
276 B
Python
def load_app(name):
|
|
app = __import__(name).app
|
|
app.config['TESTING'] = True
|
|
return app.test_client()
|
|
|
|
|
|
def test_basic_app():
|
|
app = load_app('basic_app')
|
|
index = app.get('/')
|
|
assert index.status_code == 200
|
|
assert b'<div id="flDebug"' in index.data
|