From f3650aa29bd7238460e1f9becb7f2041766f239c Mon Sep 17 00:00:00 2001 From: jfriedli Date: Fri, 5 May 2023 13:38:08 +0000 Subject: [PATCH] tests_fix --- test/test_api.py | 4 ++-- 1 file 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): request = self.app.post( '/api/download/bulk', ) - self.assertEqual(400, request.status_code) + self.assertEqual(415, request.status_code) error_message = request.get_json()['message'] - self.assertEqual("The browser (or proxy) sent a request that this server could not understand.", error_message) + self.assertEqual("Did not attempt to load JSON data because the request Content-Type was not 'application/json'.", error_message) def test_api_bulk_download_validation(self): post_body = {