Skip to content

Commit 99a6756

Browse files
committed
test: online test for renaming the group multiple times
1 parent 3310315 commit 99a6756

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

deltachat-rpc-client/tests/test_something.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,3 +778,22 @@ def test_rename_synchronization(acfactory):
778778
alice_msg.sender.set_name("Bobby")
779779
alice2.wait_for_event(EventType.CONTACTS_CHANGED)
780780
assert alice2_msg.sender.get_snapshot().display_name == "Bobby"
781+
782+
783+
def test_rename_group(acfactory):
784+
"""Test renaming the group."""
785+
alice, bob = acfactory.get_online_accounts(2)
786+
787+
alice_group = alice.create_group("Test group")
788+
alice_contact_bob = alice.create_contact(bob)
789+
alice_group.add_contact(alice_contact_bob)
790+
alice_group.send_text("Hello!")
791+
792+
bob_msg = bob.wait_for_incoming_msg()
793+
bob_chat = bob_msg.get_snapshot().chat
794+
assert bob_chat.get_basic_snapshot().name == "Test group"
795+
796+
for name in ["Baz", "Foo bar", "Xyzzy"]:
797+
alice_group.set_name(name)
798+
bob.wait_for_incoming_msg_event()
799+
assert bob_chat.get_basic_snapshot().name == name

0 commit comments

Comments
 (0)