(app, monkeypatch)
| 392 | |
| 393 | |
| 394 | def test_templates_auto_reload_debug_run(app, monkeypatch): |
| 395 | def run_simple_mock(*args, **kwargs): |
| 396 | pass |
| 397 | |
| 398 | monkeypatch.setattr(werkzeug.serving, "run_simple", run_simple_mock) |
| 399 | |
| 400 | app.run() |
| 401 | assert not app.jinja_env.auto_reload |
| 402 | |
| 403 | app.run(debug=True) |
| 404 | assert app.jinja_env.auto_reload |
| 405 | |
| 406 | |
| 407 | def test_template_loader_debugging(test_apps, monkeypatch): |