Skip to content

Commit 5453768

Browse files
committed
fix python tests
1 parent a9fe77b commit 5453768

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python/tests/test_account.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_getinfo(self, acfactory):
2121
d = ac1.get_info()
2222
assert d["arch"]
2323
assert d["number_of_chats"] == "0"
24-
assert d["bcc_self"] == "1"
24+
assert d["bcc_self"] == "0"
2525

2626
def test_is_not_configured(self, acfactory):
2727
ac1 = acfactory.get_unconfigured_account()
@@ -43,7 +43,7 @@ def test_has_savemime(self, acfactory):
4343
def test_has_bccself(self, acfactory):
4444
ac1 = acfactory.get_unconfigured_account()
4545
assert "bcc_self" in ac1.get_config("sys.config_keys").split()
46-
assert ac1.get_config("bcc_self") == "1"
46+
assert ac1.get_config("bcc_self") == "0"
4747

4848
def test_selfcontact_if_unconfigured(self, acfactory):
4949
ac1 = acfactory.get_unconfigured_account()
@@ -405,6 +405,9 @@ def test_one_account_send_bcc_setting(self, acfactory, lp):
405405
wait_successful_IMAP_SMTP_connection(ac1)
406406
wait_configuration_progress(ac1, 1000)
407407

408+
lp.sec("ac1: setting bcc_self=1")
409+
ac1.set_config("bcc_self", "1")
410+
408411
lp.sec("send out message with bcc to ourselves")
409412
msg_out = chat.send_text("message2")
410413
ev = ac1._evlogger.get_matching("DC_EVENT_MSGS_CHANGED")

0 commit comments

Comments
 (0)