simplify and speedup multi-chatmail instance support

This commit is contained in:
holger krekel
2023-10-16 19:18:21 +02:00
parent 55c58e3c7a
commit 9dfd0ceb5a
2 changed files with 13 additions and 23 deletions

View File

@@ -4,10 +4,11 @@ def test_remotelog(remotelog, imap_or_smtp):
assert imap_or_smtp.logunit in next(lineproducer)
def test_use_two_chatmailservers(cmfactory, maildomain2, switch_maildomain):
(ac1,) = cmfactory.get_online_accounts(1)
with switch_maildomain(cmfactory, maildomain2):
(ac2,) = cmfactory.get_online_accounts(1)
def test_use_two_chatmailservers(cmfactory, maildomain2):
ac1 = cmfactory.new_online_configuring_account(cache=False)
cmfactory.switch_maildomain(maildomain2)
ac2 = cmfactory.new_online_configuring_account(cache=False)
cmfactory.bring_accounts_online()
cmfactory.get_accepted_chat(ac1, ac2)
domain1 = ac1.get_config("addr").split("@")[1]
domain2 = ac2.get_config("addr").split("@")[1]