From 0442a7cec24bff9985fb8cf59b0fb2604544eaa8 Mon Sep 17 00:00:00 2001 From: ionite34 Date: Mon, 28 Nov 2022 11:12:56 +0800 Subject: Add ParsingError handling for invalid base64 --- tests/api/test_eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/api') diff --git a/tests/api/test_eval.py b/tests/api/test_eval.py index 41bdd35..64d7ba6 100644 --- a/tests/api/test_eval.py +++ b/tests/api/test_eval.py @@ -72,7 +72,7 @@ class TestEvalResource(SnekAPITestCase): result = self.simulate_post(self.PATH, json=body) self.assertEqual(result.status_code, 400) expected = { - "title": "Request file path failed validation", + "title": "Request file is invalid", "description": f"File path '{path}' may not traverse beyond root", } self.assertEqual(expected, result.json) -- cgit v1.2.3