mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-02-23 16:49:59 -05:00
tests_fix
This commit is contained in:
parent
c957267382
commit
f3650aa29b
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user