From c0d8d6c8eb74d839e520cd2e4429763208b478dd Mon Sep 17 00:00:00 2001 From: Jfriedli Date: Tue, 23 Mar 2021 21:20:54 +0100 Subject: catch newly thrown ValueErrors on get_file_parser --- test/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test.py') diff --git a/test/test.py b/test/test.py index 3666457..d9d0fbf 100644 --- a/test/test.py +++ b/test/test.py @@ -63,7 +63,7 @@ class Mat2WebTestCase(TestCase): data=dict( file=(io.BytesIO(b""), 'test.pdf'), ), follow_redirects=True) - self.assertIn(b'The type application/pdf is not supported', + self.assertIn(b'The filetype is not supported', rv.data) self.assertEqual(rv.status_code, 200) -- cgit v1.3