summaryrefslogtreecommitdiff
path: root/test/test_api.py
diff options
context:
space:
mode:
authorJfriedli2021-03-23 21:20:54 +0100
committerJfriedli2021-03-23 21:20:54 +0100
commitc0d8d6c8eb74d839e520cd2e4429763208b478dd (patch)
tree2aa90ac6bb593a6a29ba357d3d840bcefcb644ad /test/test_api.py
parent501ecbf97e342c6d3a4c5d89131937f615cc98cf (diff)
catch newly thrown ValueErrors on get_file_parserv0.7.0
Diffstat (limited to 'test/test_api.py')
-rw-r--r--test/test_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_api.py b/test/test_api.py
index ad2525e..8be165e 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -86,7 +86,7 @@ class Mat2APITestCase(unittest.TestCase):
86 self.assertEqual(request.status_code, 415) 86 self.assertEqual(request.status_code, 415)
87 87
88 error = request.get_json()['message'] 88 error = request.get_json()['message']
89 self.assertEqual(error, 'The type application/pdf is not supported') 89 self.assertEqual(error, 'The filetype is not supported')
90 90
91 def test_api_supported_extensions(self): 91 def test_api_supported_extensions(self):
92 rv = self.app.get('/api/extension') 92 rv = self.app.get('/api/extension')
@@ -487,7 +487,7 @@ class Mat2APITestCase(unittest.TestCase):
487 ), 487 ),
488 follow_redirects=False 488 follow_redirects=False
489 ) 489 )
490 self.assertEqual(r.get_json()['message'], 'The type None is not supported') 490 self.assertEqual(r.get_json()['message'], 'The filetype is not supported')
491 self.assertEqual(r.status_code, 415) 491 self.assertEqual(r.status_code, 415)
492 492
493 493