Add python test for autodelete timer API

This commit is contained in:
Alexander Krotov
2020-01-03 10:03:41 +03:00
parent 0ca3e3100e
commit 0189644f08

View File

@@ -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):