diff options
author | Travis Ralston <travisr@element.io> | 2024-06-28 17:47:58 -0600 |
---|---|---|
committer | Travis Ralston <travisr@element.io> | 2024-06-28 17:47:58 -0600 |
commit | d8fed6fadf5fe18f621a51004663e85813891bdc (patch) | |
tree | 1adb62a7ac9663a431feb0dcfde945df4b8195a4 | |
parent | changelog (diff) | |
download | synapse-github/travis/report-room-stable.tar.xz |
appease the linter github/travis/report-room-stable travis/report-room-stable
-rw-r--r-- | synapse/rest/client/reporting.py | 1 | ||||
-rw-r--r-- | tests/rest/client/test_reporting.py | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/synapse/rest/client/reporting.py b/synapse/rest/client/reporting.py index a099e1f69a..c8b9111f45 100644 --- a/synapse/rest/client/reporting.py +++ b/synapse/rest/client/reporting.py @@ -156,6 +156,7 @@ class UnstableReportRoomRestServlet(RestServlet): return 200, {} + class ReportRoomRestServlet(RestServlet): """This endpoint lets clients report a room for abuse. diff --git a/tests/rest/client/test_reporting.py b/tests/rest/client/test_reporting.py index 8abff21b12..723553979f 100644 --- a/tests/rest/client/test_reporting.py +++ b/tests/rest/client/test_reporting.py @@ -156,9 +156,7 @@ class ReportRoomTestCase(unittest.HomeserverTestCase): self.room_id = self.helper.create_room_as( self.other_user, tok=self.other_user_tok, is_public=True ) - self.report_path = ( - f"/_matrix/client/v3/rooms/{self.room_id}/report" - ) + self.report_path = f"/_matrix/client/v3/rooms/{self.room_id}/report" def test_reason_str(self) -> None: data = {"reason": "this makes me sad"} |