mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-12 03:05:19 -04:00
tests_fix
This commit is contained in:
parent
c957267382
commit
f3650aa29b
1 changed files with 2 additions and 2 deletions
|
@ -283,9 +283,9 @@ class Mat2APITestCase(unittest.TestCase):
|
||||||
request = self.app.post(
|
request = self.app.post(
|
||||||
'/api/download/bulk',
|
'/api/download/bulk',
|
||||||
)
|
)
|
||||||
self.assertEqual(400, request.status_code)
|
self.assertEqual(415, request.status_code)
|
||||||
error_message = request.get_json()['message']
|
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):
|
def test_api_bulk_download_validation(self):
|
||||||
post_body = {
|
post_body = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue