Set the content length automatically before calling wrap_file
This commit is contained in:
parent
ffd9296507
commit
47572c5b40
2 changed files with 2 additions and 0 deletions
|
|
@ -786,6 +786,7 @@ class BasicFunctionalityTestCase(FlaskTestCase):
|
|||
|
||||
def test_static_files(self):
|
||||
app = flask.Flask(__name__)
|
||||
app.testing = True
|
||||
rv = app.test_client().get('/static/index.html')
|
||||
self.assert_equal(rv.status_code, 200)
|
||||
self.assert_equal(rv.data.strip(), b'<h1>Hello World!</h1>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue