Skip to content
Myr

failing test for streaming session

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

authored by David Lord · committed by David Lord · parent 49f3e96 · Browse files · 1 file+14 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+14 added−0 removed

  • tests:+14 added−0 removed

1 file+14 added−0 removed

modified:tests/test_helpers.py+14 added
859 unmodified lines
860 rv = client.get('/?name=World')861 assert rv.data == b'Hello World!'862 assert called == [42]863864 def test_stream_keeps_session(self, app, client):865 @app.route('/')866 def index():867 flask.session['test'] = 'flask'868869 @flask.stream_with_context870 def gen():871 yield flask.session['test']872873 return flask.Response(gen())874875 rv = client.get('/')876 assert rv.data == b'flask'877878879class TestSafeJoin(object):880 def test_safe_join(self):881 # Valid combinations of *args and expected joined paths.882 passing = (
64 unmodified lines