mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 02:09:17 +02:00
add initial group management API and is_promoted()
This commit is contained in:
parent
3015c3c6d7
commit
e777b576cb
4 changed files with 77 additions and 12 deletions
|
@ -60,6 +60,17 @@ class TestOfflineAccount:
|
|||
else:
|
||||
pytest.fail("could not find chat")
|
||||
|
||||
def test_group_chat(self, acfactory):
|
||||
ac1 = acfactory.get_offline_account()
|
||||
contact1 = ac1.create_contact("some1@hello.com", name="some1")
|
||||
contact2 = ac1.create_contact("some2@hello.com", name="some2")
|
||||
chat = ac1.create_group_chat(name="chat name")
|
||||
chat.add_contact(contact1)
|
||||
chat.add_contact(contact2)
|
||||
assert contact1 in chat.get_contacts()
|
||||
assert contact2 in chat.get_contacts()
|
||||
assert not chat.is_promoted()
|
||||
|
||||
def test_message(self, acfactory):
|
||||
ac1 = acfactory.get_offline_account()
|
||||
contact1 = ac1.create_contact("some1@hello.com", name="some1")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue