summaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
authorjvoisin2019-03-06 21:20:39 +0100
committerjvoisin2019-03-06 21:25:06 +0100
commit457d171cd48bf4809d3809fc9511836795972bf5 (patch)
tree1469ba539371703008abc659c0af87dd215e9930 /tests.py
parent769bafac0acdf3e0b41f42a60df1029d6e0e3829 (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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests.py b/tests.py
index 0289755..4c85a74 100644
--- a/tests.py
+++ b/tests.py
@@ -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')