Clarify test_forget_when_not_left docstring (#17628)

This commit is contained in:
Andrew Morgan 2024-10-07 16:34:32 +01:00 committed by GitHub
parent e8e0f0fad7
commit e8c8924b81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

1
changelog.d/17628.doc Normal file
View file

@ -0,0 +1 @@
Clarify the docstring of `test_forget_when_not_left`.

View file

@ -380,7 +380,7 @@ class RoomMemberMasterHandlerTestCase(HomeserverTestCase):
) )
def test_forget_when_not_left(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) self.get_failure(self.handler.forget(self.alice_ID, self.room_id), SynapseError)
def test_nonlocal_room_user_action(self) -> None: def test_nonlocal_room_user_action(self) -> None: