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

Commit

Permalink
Clarify comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Mar 16, 2022
1 parent 1e0da6d commit 38d66f8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/rest/client/test_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1267,8 +1267,14 @@ def test_background_update(self) -> None:
[annotation_event_id_good, thread_event_id],
)

def test_bundled_aggregations_with_filter(self):
"""If unsigned is not a returned field, the bundled aggregations still get added."""
def test_bundled_aggregations_with_filter(self) -> None:
"""
If "unsigned" is an omitted field (due to filtering), adding the bundled
aggregations should not break.
Note that the spec allows for a server to return additional fields beyond
what is specified.
"""
self._send_relation(RelationTypes.ANNOTATION, "m.reaction", "a")

# Note that the sync filter does not include "unsigned" as a field.
Expand Down

0 comments on commit 38d66f8

Please sign in to comment.