mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 23:06:32 +03:00
Add docs for clone_online_account
This commit is contained in:
@@ -330,6 +330,13 @@ def acfactory(pytestconfig, tmpdir, request, session_liveconfig, data):
|
|||||||
return accounts
|
return accounts
|
||||||
|
|
||||||
def clone_online_account(self, account, pre_generated_key=True):
|
def clone_online_account(self, account, pre_generated_key=True):
|
||||||
|
""" Clones addr, mail_pw, mvbox_watch, mvbox_move, sentbox_watch and the
|
||||||
|
direct_imap object of an online account. This simulates the user setting
|
||||||
|
up a new device without importing a backup.
|
||||||
|
|
||||||
|
`pre_generated_key` only means that a key from python/tests/data/key is
|
||||||
|
used in order to speed things up.
|
||||||
|
"""
|
||||||
self.live_count += 1
|
self.live_count += 1
|
||||||
tmpdb = tmpdir.join("livedb%d" % self.live_count)
|
tmpdb = tmpdir.join("livedb%d" % self.live_count)
|
||||||
ac = self.make_account(tmpdb.strpath, logid="ac{}".format(self.live_count))
|
ac = self.make_account(tmpdb.strpath, logid="ac{}".format(self.live_count))
|
||||||
|
|||||||
Reference in New Issue
Block a user