diff options
| author | jvoisin | 2019-03-06 21:20:39 +0100 |
|---|---|---|
| committer | jvoisin | 2019-03-06 21:25:06 +0100 |
| commit | 457d171cd48bf4809d3809fc9511836795972bf5 (patch) | |
| tree | 1469ba539371703008abc659c0af87dd215e9930 /tests.py | |
| parent | 769bafac0acdf3e0b41f42a60df1029d6e0e3829 (diff) | |
Improve the display of supported formats
- Show the extension instead of the mimetype
- Sort the results
Diffstat (limited to 'tests.py')
| -rw-r--r-- | tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -21,8 +21,8 @@ class FlaskrTestCase(unittest.TestCase): | |||
| 21 | 21 | ||
| 22 | def test_check_mimetypes(self): | 22 | def test_check_mimetypes(self): |
| 23 | rv = self.app.get('/') | 23 | rv = self.app.get('/') |
| 24 | self.assertIn(b'application/zip', rv.data) | 24 | self.assertIn(b'.torrent', rv.data) |
| 25 | self.assertIn(b'audio/x-flac', rv.data) | 25 | self.assertIn(b'.ods', rv.data) |
| 26 | 26 | ||
| 27 | def test_get_download_dangerous_file(self): | 27 | def test_get_download_dangerous_file(self): |
| 28 | rv = self.app.get('/download/1337/\..\filename') | 28 | rv = self.app.get('/download/1337/\..\filename') |
