diff options
| author | jfriedli | 2023-05-05 13:38:08 +0000 |
|---|---|---|
| committer | jfriedli | 2023-05-05 13:38:08 +0000 |
| commit | f3650aa29bd7238460e1f9becb7f2041766f239c (patch) | |
| tree | 115f223c0d7948e6706ebfe28d788eecee51fca8 /test | |
| parent | c95726738228149a2f9d4e66357e6599f7c9c88a (diff) | |
tests_fix
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_api.py b/test/test_api.py index da94023..e83021a 100644 --- a/test/test_api.py +++ b/test/test_api.py | |||
| @@ -283,9 +283,9 @@ class Mat2APITestCase(unittest.TestCase): | |||
| 283 | request = self.app.post( | 283 | request = self.app.post( |
| 284 | '/api/download/bulk', | 284 | '/api/download/bulk', |
| 285 | ) | 285 | ) |
| 286 | self.assertEqual(400, request.status_code) | 286 | self.assertEqual(415, request.status_code) |
| 287 | error_message = request.get_json()['message'] | 287 | error_message = request.get_json()['message'] |
| 288 | self.assertEqual("The browser (or proxy) sent a request that this server could not understand.", error_message) | 288 | self.assertEqual("Did not attempt to load JSON data because the request Content-Type was not 'application/json'.", error_message) |
| 289 | 289 | ||
| 290 | def test_api_bulk_download_validation(self): | 290 | def test_api_bulk_download_validation(self): |
| 291 | post_body = { | 291 | post_body = { |
