mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 02:09:17 +02:00
add account.get_chats() API
This commit is contained in:
parent
ff9a624714
commit
3015c3c6d7
2 changed files with 22 additions and 0 deletions
|
@ -54,6 +54,12 @@ class TestOfflineAccount:
|
|||
assert chat == chat2
|
||||
assert not (chat != chat2)
|
||||
|
||||
for ichat in ac1.get_chats():
|
||||
if ichat.id == chat.id:
|
||||
break
|
||||
else:
|
||||
pytest.fail("could not find chat")
|
||||
|
||||
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