forked from orbit-oss/flask
Remove unnecessary werkzeug mock attribs from test
This commit is contained in:
parent
24289e97af
commit
1a67e284d0
1 changed files with 1 additions and 3 deletions
|
|
@ -349,11 +349,9 @@ def test_templates_auto_reload():
|
||||||
|
|
||||||
def test_templates_auto_reload_debug_run(monkeypatch):
|
def test_templates_auto_reload_debug_run(monkeypatch):
|
||||||
# debug is None in config, config option is None, app.run(debug=True)
|
# debug is None in config, config option is None, app.run(debug=True)
|
||||||
rv = {}
|
|
||||||
|
|
||||||
# Mocks werkzeug.serving.run_simple method
|
# Mocks werkzeug.serving.run_simple method
|
||||||
def run_simple_mock(*args, **kwargs):
|
def run_simple_mock(*args, **kwargs):
|
||||||
rv['passthrough_errors'] = kwargs.get('passthrough_errors')
|
pass
|
||||||
|
|
||||||
app = flask.Flask(__name__)
|
app = flask.Flask(__name__)
|
||||||
monkeypatch.setattr(werkzeug.serving, 'run_simple', run_simple_mock)
|
monkeypatch.setattr(werkzeug.serving, 'run_simple', run_simple_mock)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue