Skip to content

Commit

Permalink
Clarify test_forget_when_not_left docstring (#17628)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 authored Oct 7, 2024
1 parent e8e0f0f commit e8c8924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/17628.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify the docstring of `test_forget_when_not_left`.
2 changes: 1 addition & 1 deletion tests/handlers/test_room_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_nonlocal_room_user_action(self) -> None:
Expand Down

0 comments on commit e8c8924

Please sign in to comment.