Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Clarify a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Jan 20, 2022
1 parent 6cd6068 commit 8778cd6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/rest/client/test_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ def test_bundled_aggregations(self):
"""
Test that annotations, references, and threads get correctly bundled.
Note that this doesn't test against /relations since only thread relations
get bundled via that API. See test_aggregation_get_event_for_thread.
See test_edit for a similar test for edits.
"""
# Setup by sending a variety of relations.
Expand Down Expand Up @@ -576,9 +579,6 @@ def assert_bundle(event_json: JsonDict) -> None:
self.assertTrue(room_timeline["limited"])
self._find_event_in_chunk(room_timeline["events"])

# Note that /relations is tested separately in test_aggregation_get_event_for_thread
# since it needs different data configured.

def test_aggregation_get_event_for_annotation(self):
"""Test that annotations do not get bundled aggregations included
when directly requested.
Expand Down Expand Up @@ -825,9 +825,6 @@ def assert_bundle(event_json: JsonDict) -> None:
self.assertTrue(room_timeline["limited"])
assert_bundle(self._find_event_in_chunk(room_timeline["events"]))

# Note that /relations is tested separately in test_aggregation_get_event_for_thread
# since it needs different data configured.

def test_multi_edit(self):
"""Test that multiple edits, including attempts by people who
shouldn't be allowed, are correctly handled.
Expand Down

0 comments on commit 8778cd6

Please sign in to comment.