mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
Add python test for autodelete timer API
This commit is contained in:
@@ -1473,6 +1473,18 @@ class TestOnlineAccount:
|
|||||||
locations3 = chat2.get_locations(contact=contact)
|
locations3 = chat2.get_locations(contact=contact)
|
||||||
assert not locations3
|
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:
|
class TestGroupStressTests:
|
||||||
def test_group_many_members_add_leave_remove(self, acfactory, lp):
|
def test_group_many_members_add_leave_remove(self, acfactory, lp):
|
||||||
|
|||||||
Reference in New Issue
Block a user