mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 02:09:17 +02:00
add basic create contact API
This commit is contained in:
parent
a244393860
commit
b153089d4c
4 changed files with 44 additions and 7 deletions
|
@ -8,6 +8,15 @@ except ImportError:
|
|||
|
||||
|
||||
class TestLive:
|
||||
def test_contacts(self, acfactory):
|
||||
ac1 = acfactory.get_live_account(started=False)
|
||||
contact1 = ac1.create_contact("some1@hello.com", name="some1")
|
||||
assert contact1.id
|
||||
assert contact1.addr == "some1@hello.com"
|
||||
assert contact1.display_name == "some1"
|
||||
assert not contact1.is_blocked
|
||||
assert not contact1.is_verified
|
||||
|
||||
def test_basic_configure_login_ok(self, acfactory):
|
||||
q = Queue()
|
||||
ac1 = acfactory.get_live_account(logcallback=q.put)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue