1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 02:09:17 +02:00

- make set_config() more like the c-version but make configure() accept **kwargs

- some safety checks: you can't modify addr after successful configure
This commit is contained in:
holger krekel 2018-09-23 22:51:12 +02:00
parent bea807f012
commit da78552622
3 changed files with 41 additions and 15 deletions

View file

@ -50,7 +50,7 @@ def acfactory(pytestconfig, tmpdir, request):
tmpdb = tmpdir.join("livedb%d" % self.live_count)
ac = Account(tmpdb.strpath, logid="ac{}".format(self.live_count))
ac._evlogger.set_timeout(30)
ac.set_config(**configdict)
ac.configure(**configdict)
if started:
ac.start()
request.addfinalizer(ac.shutdown)