fix: save custom username if user entered it

This commit is contained in:
link2xt
2024-08-22 03:27:25 +00:00
parent 8dc844e194
commit 3599e4be16
4 changed files with 77 additions and 16 deletions

View File

@@ -93,6 +93,16 @@ def test_configure_alternative_port(acfactory) -> None:
account.configure()
def test_configure_username(acfactory) -> None:
account = acfactory.new_preconfigured_account()
addr = account.get_config("addr")
account.set_config("mail_user", addr)
account.configure()
assert account.get_config("configured_mail_user") == addr
def test_account(acfactory) -> None:
alice, bob = acfactory.get_online_accounts(2)