We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb622fb commit 8aaf302Copy full SHA for 8aaf302
flask/testsuite/helpers.py
@@ -158,6 +158,7 @@ def test_send_file_regular(self):
158
self.assert_true(rv.direct_passthrough)
159
self.assert_equal(rv.mimetype, 'text/html')
160
with app.open_resource('static/index.html') as f:
161
+ rv.direct_passthrough = False
162
self.assert_equal(rv.data, f.read())
163
rv.close()
164
@@ -179,6 +180,7 @@ def test_send_file_object(self):
179
180
with app.test_request_context():
181
f = open(os.path.join(app.root_path, 'static/index.html'))
182
rv = flask.send_file(f)
183
184
185
186
0 commit comments