mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
test pass again
This commit is contained in:
@@ -16,6 +16,7 @@ from . import Account, const, direct_imap
|
||||
from .capi import lib
|
||||
from .events import FFIEventLogger, FFIEventTracker
|
||||
from _pytest._code import Source
|
||||
from deltachat.direct_imap import ImapConn
|
||||
|
||||
import deltachat
|
||||
|
||||
@@ -224,6 +225,13 @@ def acfactory(pytestconfig, tmpdir, request, session_liveconfig, data):
|
||||
acc.shutdown()
|
||||
acc.disable_logging()
|
||||
|
||||
def new_imap_conn(self, account, config_folder=None):
|
||||
imap_conn = ImapConn(account)
|
||||
self._finalizers.append(imap_conn.shutdown)
|
||||
if config_folder is not None:
|
||||
imap_conn.select_config_folder(config_folder)
|
||||
return imap_conn
|
||||
|
||||
def make_account(self, path, logid, quiet=False):
|
||||
ac = Account(path, logging=self._logging, logid=logid)
|
||||
ac._evtracker = ac.add_account_plugin(FFIEventTracker(ac))
|
||||
|
||||
Reference in New Issue
Block a user