Re-added support for folder with static files, refactored static file sending

This commit is contained in:
Armin Ronacher 2010-07-05 10:23:35 +02:00
parent b7109865a3
commit ac13deff40
6 changed files with 36 additions and 10 deletions

View file

@ -641,6 +641,8 @@ class ModuleTestCase(unittest.TestCase):
assert rv.data == 'Hello from the Admin'
rv = c.get('/admin/static/test.txt')
assert rv.data.strip() == 'Admin File'
rv = c.get('/admin/static/css/test.css')
assert rv.data.strip() == '/* nested file */'
with app.test_request_context():
assert flask.url_for('admin.static', filename='test.txt') \

View file

@ -0,0 +1 @@
/* nested file */