Skip to content

Commit f7011df

Browse files
committed
Changed in too_big test response from 404 to 413
1 parent 489a3fd commit f7011df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/api/test_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def test_too_big_file(self):
170170
data=dict(presentation=(io.BytesIO(test_pdf.read()), 'test.pdf')),
171171
content_type='multipart/form-data',
172172
)
173-
check_json_response(response, {'message': 'Presentation file should not exceed 0.001MB.'}, 404)
173+
check_json_response(response, {'message': 'Presentation file should not exceed 0.001MB.'}, 413)
174174

175175
def test_file_is_not_pdf(self):
176176
with patch('app.api.files.check_auth', return_value=True), \

0 commit comments

Comments
 (0)