mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
fix bcc_self to remain "0" for testrun/fivechat test accounts
This commit is contained in:
@@ -349,6 +349,7 @@ def acfactory(pytestconfig, tmpdir, request, session_liveconfig, data):
|
|||||||
if hasattr(acc, "_configtracker"):
|
if hasattr(acc, "_configtracker"):
|
||||||
acc._configtracker.wait_finish()
|
acc._configtracker.wait_finish()
|
||||||
del acc._configtracker
|
del acc._configtracker
|
||||||
|
acc.set_config("bcc_self", "0")
|
||||||
if acc.is_configured() and not acc.is_started():
|
if acc.is_configured() and not acc.is_started():
|
||||||
acc.start_io()
|
acc.start_io()
|
||||||
print("{}: {} account was successfully setup".format(
|
print("{}: {} account was successfully setup".format(
|
||||||
|
|||||||
@@ -723,9 +723,9 @@ class TestOnlineAccount:
|
|||||||
|
|
||||||
def test_move_works_on_self_sent(self, acfactory):
|
def test_move_works_on_self_sent(self, acfactory):
|
||||||
ac1 = acfactory.get_online_configuring_account(mvbox=True, move=True)
|
ac1 = acfactory.get_online_configuring_account(mvbox=True, move=True)
|
||||||
ac1.set_config("bcc_self", "1")
|
|
||||||
ac2 = acfactory.get_online_configuring_account()
|
ac2 = acfactory.get_online_configuring_account()
|
||||||
acfactory.wait_configure_and_start_io()
|
acfactory.wait_configure_and_start_io()
|
||||||
|
ac1.set_config("bcc_self", "1")
|
||||||
|
|
||||||
chat = acfactory.get_accepted_chat(ac1, ac2)
|
chat = acfactory.get_accepted_chat(ac1, ac2)
|
||||||
chat.send_text("message1")
|
chat.send_text("message1")
|
||||||
|
|||||||
Reference in New Issue
Block a user