From 457d171cd48bf4809d3809fc9511836795972bf5 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 6 Mar 2019 21:20:39 +0100 Subject: Improve the display of supported formats - Show the extension instead of the mimetype - Sort the results --- tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests.py') 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): 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') -- cgit v1.3