ikvk / imap_tools

Work with email by IMAP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document testing setup

link2xt opened this issue · comments

commented

I have created credentials.ini in the tests folder with the contents similar to this:

[EXAMPLE]
host=example.org
email=alice@example.org
password=foobar
path_separator=/
test_folder=INBOX

I also modified TEST_MAILBOX_NAME_SET:

TEST_MAILBOX_NAME_SET = {'YANDEX', 'ZIMBRA', 'MAIL_RU', 'YAHOO', 'OUTLOOK'}

Set it to {"EXAMPLE"}.

The tests still fail with errors like "Mailbox doesn't exist: INBOX.base (0.001 + 0.000 secs)." and "Mailbox doesn't exist: INBOX.temp1 (0.001 + 0.000 secs).". Am I supposed to create these folders manually?

Yes - manually, hands do not reach to automate it =)

*Also often it is just impossible - to create stuff for test by programm.