From 953b02f8643d8db2c4c99bfeb9cc761c8f491638 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Thu, 29 Aug 2024 14:58:14 +0100 Subject: [PATCH 1/2] Clarify `test_forget_when_not_left` docstring --- tests/handlers/test_room_member.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/handlers/test_room_member.py b/tests/handlers/test_room_member.py index 213a66ed1a1..681e6379c39 100644 --- a/tests/handlers/test_room_member.py +++ b/tests/handlers/test_room_member.py @@ -380,7 +380,7 @@ def test_leave_and_forget_last_user(self) -> None: ) def test_forget_when_not_left(self) -> None: - """Tests that a user cannot not forgets a room that has not left.""" + """Tests that a user cannot forget a room that they are still in.""" self.get_failure(self.handler.forget(self.alice_ID, self.room_id), SynapseError) def test_rejoin_forgotten_by_user(self) -> None: From 7f0ec99e1b43eef53bc2fd77bf99571be126c729 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Thu, 29 Aug 2024 14:58:51 +0100 Subject: [PATCH 2/2] newsfile --- changelog.d/17628.doc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/17628.doc diff --git a/changelog.d/17628.doc b/changelog.d/17628.doc new file mode 100644 index 00000000000..8b9f436e5f5 --- /dev/null +++ b/changelog.d/17628.doc @@ -0,0 +1 @@ +Clarify the docstring of `test_forget_when_not_left`. \ No newline at end of file