mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 15:42:10 +03:00
python bindings for archive and py tests
This commit is contained in:
@@ -426,6 +426,17 @@ class TestOfflineChat:
|
||||
chat.remove_contact(contacts[3])
|
||||
assert len(chat.get_contacts()) == 9
|
||||
|
||||
def test_archive_and_pin_chat(self, ac1):
|
||||
chat = ac1.create_group_chat(name="title1")
|
||||
|
||||
assert not chat.is_archived()
|
||||
chat.archive()
|
||||
assert chat.is_archived()
|
||||
chat.unarchive()
|
||||
assert not chat.is_archived()
|
||||
chat.pin()
|
||||
assert chat.is_pinned()
|
||||
|
||||
|
||||
class TestOnlineAccount:
|
||||
@pytest.mark.ignored
|
||||
|
||||
Reference in New Issue
Block a user