Always call print_imap_structure when test fails

This commit is contained in:
Hocuri
2020-05-28 20:27:25 +02:00
parent 3cc5aef016
commit 232f1d4f86
2 changed files with 20 additions and 4 deletions

View File

@@ -95,8 +95,9 @@ def make_direct_imap(account, folder):
return imap
def print_imap_structure(database):
ac = Account(database)
ac.disable_logging()
print_imap_structure_ac(Account(database))
def print_imap_structure_ac(ac):
print("================= ACCOUNT", ac.get_config("addr"), "=================")
print("----------------- CONFIG: -----------------")
print(ac.get_info())