catch newly thrown ValueErrors on get_file_parser

This commit is contained in:
Jfriedli 2021-03-23 21:20:54 +01:00
parent 501ecbf97e
commit c0d8d6c8eb
4 changed files with 48 additions and 42 deletions

View file

@ -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)