mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-13 03:32:18 -04:00
catch newly thrown ValueErrors on get_file_parser
This commit is contained in:
parent
501ecbf97e
commit
c0d8d6c8eb
4 changed files with 48 additions and 42 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue