diff --git a/python/tests/test_account.py b/python/tests/test_account.py index a3378f2f5..e222f3c90 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -1473,6 +1473,18 @@ class TestOnlineAccount: locations3 = chat2.get_locations(contact=contact) assert not locations3 + def test_autodelete_timer(self, acfactory, lp): + ac1, ac2 = acfactory.get_two_online_accounts() + + lp.sec("create unpromoted group chat") + chat = ac1.create_group_chat("hello") + + chat.set_autodelete_timer(60) + + assert chat.get_autodelete_timer() == 60 + + d = chat.get_summary() + assert d["autodelete_timer"] == 60 class TestGroupStressTests: def test_group_many_members_add_leave_remove(self, acfactory, lp):