mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-07-26 07:55:32 -04:00
Improve the display of supported formats
- Show the extension instead of the mimetype - Sort the results
This commit is contained in:
parent
769bafac0a
commit
457d171cd4
2 changed files with 6 additions and 3 deletions
4
tests.py
4
tests.py
|
@ -21,8 +21,8 @@ class FlaskrTestCase(unittest.TestCase):
|
|||
|
||||
def test_check_mimetypes(self):
|
||||
rv = self.app.get('/')
|
||||
self.assertIn(b'application/zip', rv.data)
|
||||
self.assertIn(b'audio/x-flac', rv.data)
|
||||
self.assertIn(b'.torrent', rv.data)
|
||||
self.assertIn(b'.ods', rv.data)
|
||||
|
||||
def test_get_download_dangerous_file(self):
|
||||
rv = self.app.get('/download/1337/\..\filename')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue