mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 18:29:19 +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
|
@ -30,12 +30,13 @@ def acfactory(pytestconfig, tmpdir, request):
|
|||
self.configlist.append(d)
|
||||
self.count = 0
|
||||
|
||||
def get_live_account(self, logcallback=None):
|
||||
def get_live_account(self, logcallback=None, started=True):
|
||||
configdict = self.configlist.pop(0)
|
||||
tmpdb = tmpdir.join("testdb%d" % self.count)
|
||||
ac = Account(tmpdb.strpath, logcallback=logcallback)
|
||||
ac.set_config(**configdict)
|
||||
ac.start()
|
||||
if started:
|
||||
ac.start()
|
||||
request.addfinalizer(ac.shutdown)
|
||||
return ac
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue