1
0

Tweak comments

This commit is contained in:
Eric Eastwood
2024-05-28 15:51:05 -05:00
parent a28569f79d
commit 950fd70948
2 changed files with 7 additions and 2 deletions

View File

@@ -117,6 +117,8 @@ class MsisdnRequestTokenBody(ThreepidRequestTokenBody):
class SlidingSyncBody(RequestBodyModel):
"""
Sliding Sync API request body.
Attributes:
lists: Sliding window API. A map of list key to list information
(:class:`SlidingSyncList`). Max lists: 100. The list keys should be

View File

@@ -12,7 +12,10 @@ from tests.unittest import HomeserverTestCase
class GetSyncRoomIdsForUserTestCase(HomeserverTestCase):
"""Tests Sliding Sync handler `get_sync_room_ids_for_user`."""
"""
Tests Sliding Sync handler `get_sync_room_ids_for_user()` to make sure it returns
the correct list of rooms IDs.
"""
servlets = [
admin.register_servlets,
@@ -192,7 +195,7 @@ class GetSyncRoomIdsForUserTestCase(HomeserverTestCase):
def test_no_joins_after_to_token(self) -> None:
"""
Rooms we join after the `to_token` should not show up. See condition "2b)"
Rooms we join after the `to_token` should *not* show up. See condition "2b)"
comments in the `get_sync_room_ids_for_user()` method.
"""
user1_id = self.register_user("user1", "pass")