summary refs log tree commit diff
path: root/tests/rest
diff options
context:
space:
mode:
authorGordan Trevis <GitHub@gordantrevis.me>2024-04-16 21:12:36 +0200
committerGitHub <noreply@github.com>2024-04-16 19:12:36 +0000
commitf0d6f140479d24754993b7fcaeb33e07f26e1c88 (patch)
tree8b861d191f72def055b3796d477aaa3f9b4442a1 /tests/rest
parentMerge branch 'master' into develop (diff)
downloadsynapse-f0d6f140479d24754993b7fcaeb33e07f26e1c88.tar.xz
Parse Integer negative value validation (#16920)
Diffstat (limited to 'tests/rest')
-rw-r--r--tests/rest/admin/test_media.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/rest/admin/test_media.py b/tests/rest/admin/test_media.py
index 493e1d1919..f378165513 100644
--- a/tests/rest/admin/test_media.py
+++ b/tests/rest/admin/test_media.py
@@ -277,7 +277,8 @@ class DeleteMediaByDateSizeTestCase(_AdminMediaTests):
         self.assertEqual(400, channel.code, msg=channel.json_body)
         self.assertEqual(Codes.MISSING_PARAM, channel.json_body["errcode"])
         self.assertEqual(
-            "Missing integer query parameter 'before_ts'", channel.json_body["error"]
+            "Missing required integer query parameter before_ts",
+            channel.json_body["error"],
         )
 
     def test_invalid_parameter(self) -> None:
@@ -320,7 +321,7 @@ class DeleteMediaByDateSizeTestCase(_AdminMediaTests):
         self.assertEqual(400, channel.code, msg=channel.json_body)
         self.assertEqual(Codes.INVALID_PARAM, channel.json_body["errcode"])
         self.assertEqual(
-            "Query parameter size_gt must be a string representing a positive integer.",
+            "Query parameter size_gt must be a positive integer.",
             channel.json_body["error"],
         )