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

Commit 33abb06

Browse files
committed
Add a failing test case.
1 parent 5f235fe commit 33abb06

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/rest/client/test_relations.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,20 @@ def test_edit_edit(self) -> None:
620620
{"event_id": edit_event_id, "sender": self.user_id}, m_replace_dict
621621
)
622622

623+
# Directly requesting the edit should not have the edit to the edit applied.
624+
channel = self.make_request(
625+
"GET",
626+
f"/rooms/{self.room}/event/{edit_event_id}",
627+
access_token=self.user_token,
628+
)
629+
self.assertEqual(200, channel.code, channel.json_body)
630+
self.assertIn("m.new_content",
631+
channel.json_body["content"]
632+
)
633+
634+
# The relations information should not include the edit to the edit.
635+
self.assertNotIn("m.relations", channel.json_body["unsigned"])
636+
623637
def test_unknown_relations(self) -> None:
624638
"""Unknown relations should be accepted."""
625639
channel = self._send_relation("m.relation.test", "m.room.test")

0 commit comments

Comments
 (0)