mirror of
https://github.com/pallets-eco/flask-debugtoolbar.git
synced 2026-01-05 04:59:47 -06:00
Require Flask >= `2.2.0`. I'm comfortable going up to requiring `3.x`, but when I grep'd for places we use older Flask constructs, this was all I found. So for now no need to jump further. Flask `2.2.0` requires Python >= `3.7`, so also dropped older pythons.
17 lines
332 B
Python
17 lines
332 B
Python
import sys
|
|
|
|
from flask_debugtoolbar import _printable
|
|
|
|
|
|
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
|