mirror of
https://github.com/chatmail/relay.git
synced 2026-05-14 01:44:38 +00:00
simplify and speedup multi-chatmail instance support
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user