MCPcopy
hub / github.com/pallets/flask / test_templates_auto_reload_debug_run

Function test_templates_auto_reload_debug_run

tests/test_templating.py:394–404  ·  view source on GitHub ↗
(app, monkeypatch)

Source from the content-addressed store, hash-verified

392
393
394def 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
407def test_template_loader_debugging(test_apps, monkeypatch):

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected