Skip to content
Myr

Add testcase for behavior described in #1338

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent 6e6a3e8 · Browse files · 1 file+18 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+18 added−0 removed

  • tests:+18 added−0 removed

1 file+18 added−0 removed

modified:tests/test_basic.py+18 added
573 unmodified lines
574 assert 'after' in evts575 assert rv == b'request|after'576577578def test_request_preprocessing_early_return():579 app = flask.Flask(__name__)580 evts = []581582 @app.before_request583 def before_request():584 return "hello"585586 @app.route('/')587 def index():588 evts.append('index')589 return "damnit"590591 rv = app.test_client().get('/').data.strip()592 assert rv == 'hello'593 assert not evts594595596def test_after_request_processing():597 app = flask.Flask(__name__)598 app.testing = True599
997 unmodified lines