mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-14 02:15:27 -04:00
Make EventHandler.get_event
return None
when the requested event is not found (#15298)
This commit is contained in:
parent
f11fe931f5
commit
b6aef59334
3 changed files with 11 additions and 4 deletions
|
@ -84,6 +84,11 @@ class ReportEventTestCase(unittest.HomeserverTestCase):
|
|||
access_token=self.other_user_tok,
|
||||
)
|
||||
self.assertEqual(404, channel.code, msg=channel.result["body"])
|
||||
self.assertEqual(
|
||||
"Unable to report event: it does not exist or you aren't able to see it.",
|
||||
channel.json_body["error"],
|
||||
msg=channel.result["body"],
|
||||
)
|
||||
|
||||
def _assert_status(self, response_status: int, data: JsonDict) -> None:
|
||||
channel = self.make_request(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue