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

Improve the tests for relations #12113

Merged
merged 9 commits into from
Mar 2, 2022
Prev Previous commit
Next Next commit
Fix an incorrect comment.
clokep committed Mar 1, 2022
commit 157767838a1b54f44e81011308bafac78676176f
4 changes: 1 addition & 3 deletions tests/rest/client/test_relations.py
Original file line number Diff line number Diff line change
@@ -67,9 +67,7 @@ def prepare(self, reactor: MemoryReactor, clock: Clock, hs: HomeServer) -> None:
self.parent_id = res["event_id"]

def test_send_relation(self) -> None:
"""Tests that sending a relation using the new /send_relation works
creates the right shape of event.
"""
"""Tests that sending a relation works."""

channel = self._send_relation(RelationTypes.ANNOTATION, "m.reaction", key="👍")
self.assertEqual(200, channel.code, channel.json_body)