holger krekel
f11c3dd3e3
fix bench test
2022-05-03 19:35:03 +02:00
holger krekel
394067be63
refactor session_liveconfig_producer to become a more geneal testprocess management object
2022-05-03 19:35:03 +02:00
holger krekel
2494613583
- perform direct_imap init in testplugin instead of global deltachat
...
plugin, probably also helping to avoid some segfeaults during teardown
- some API renaming on the side (too hard to split into separate commit, sorry)
2022-05-03 19:35:03 +02:00
holger krekel
77c60e7450
refine test support function name
2022-05-03 19:35:03 +02:00
holger krekel
04dd2d93d0
trim online account creation to a single get_online_accounts() function
2022-05-03 19:35:03 +02:00
holger krekel
5e5710ecce
streamline configuration handling for test accounts, removing one layer of flags
2022-05-03 19:35:03 +02:00
holger krekel
c1b33a66c4
refactor "quiet" parameter away and provide more precise logging-control
2022-05-03 19:35:03 +02:00
holger krekel
0e3165d724
unify get_unconfigured_account and make_account
2022-05-03 19:35:03 +02:00
holger krekel
3e12eab0b5
remove make_account from get_online_config and rename the latter to get_next_liveconfig to avoid one indirection
2022-05-03 19:35:03 +02:00
holger krekel
87365e4a43
- remove superflous early set_configs to separate config / account making better
...
- avoid low-level dc_* API access from testplugin
2022-05-03 19:35:03 +02:00
holger krekel
3e16a47ff2
remove unnccesary distinction between offline/online accounts in make_account, simplifying api/usage
2022-05-03 19:35:03 +02:00
holger krekel
874054148e
streamline session_live_config implementation and usage
2022-05-03 19:35:03 +02:00
holger krekel
5e39a13bf6
refine waiting for initial startup waiting for "INBOX: Idle" ready
...
this slows down initialization for tests but provides more stability in my runs
2022-05-03 19:35:03 +02:00
holger krekel
720c1b5eca
normalize make_account usage
2022-05-03 19:35:03 +02:00
holger krekel
c7c1a04c6a
move large inlined AccountMaker (renamed to ACFactory) to proper class instead of being defined in closure
2022-05-03 19:35:03 +02:00
holger krekel
fd5b224ba0
simplify test setup api by removing pre_generated_keys arguments
2022-05-03 19:35:03 +02:00
Hocuri
4c9cc4f3d4
Hopefully make test_connectivity() less flaky
2022-04-30 18:07:39 +02:00
link2xt
48f2c4e14b
Correctly escape messages consisting of a dot in SMTP protocol
...
Actual bugfix is in the async-smtp crate.
2022-04-30 13:30:31 +00:00
holger krekel
f41df327a9
add a little bench file -- "pytest tests/bench_empty.py --durations=10" will tell you how much overhead there is
2022-04-30 13:27:02 +02:00
missytake
b97b374487
move imap_tools mypy ignore to mypy.ini
2022-04-29 16:01:48 +02:00
missytake
e27345e489
python bindings: ignore mypy errors for imap_tools
2022-04-29 15:19:48 +02:00
missytake
032e644b2b
set default timeout to None
2022-04-29 11:30:06 +02:00
missytake
d59aa35b2f
fix mypy errors
2022-04-29 11:14:19 +02:00
holger krekel
4c7c4e2a81
better document one sometimes failing test
2022-04-29 10:06:02 +02:00
holger krekel
521fa58b75
remove timeout
2022-04-29 10:00:43 +02:00
holger krekel
a2e5c60683
- remove one unncessary usage of imap idle
...
- simplify SEEN bytes/unicode flag issue
- fix a lint issue and a docstring
2022-04-29 09:42:05 +02:00
missytake
5ef152fd84
replaced imapclient python library with imap-tools in the tests. works with testrun.org locally
2022-04-28 16:50:36 +02:00
Robert Schütz
43e3f8f08b
python: use pkg-config for system install
2022-04-26 21:48:53 +02:00
holger krekel
3ffc985968
try fix a sometimes failing test: don't test python's imap idle as it's not needed. also add some more logging.
2022-04-26 15:28:24 +02:00
link2xt
d033dcf395
Run python tests in a single thread
...
Work around mailcow rate limits
2022-04-25 15:43:47 +02:00
link2xt
5ef2a85c10
python: do not crash in get_locations() when location has no marker
2022-04-25 15:05:34 +02:00
link2xt
8c0bc9080c
Create "Junk" folder in test_dont_show_emails()
...
This folder may not exist on the test server.
2022-04-24 00:20:41 +00:00
link2xt
2f31033a88
Ignore messages from all spam folders if there are many
...
For example, if there is both a Spam and Junk folder,
both of them should be ignored, even though only one
of them can be a ConfiguredSpamFolder.
2022-04-23 19:23:31 +00:00
holger krekel
801d636eb5
enhance waiting for direct imap idle events to prevent randomness
2022-04-20 23:32:45 +02:00
Robert Schütz
969508ae36
dynamic libraries use dylib extension on Darwin
2022-04-19 08:56:29 +02:00
link2xt
33ba8dabe0
Increase python test timeout
2022-03-27 08:48:43 +00:00
link2xt
2012833cb3
Fix lint
2022-03-12 20:07:00 +00:00
link2xt
e48eef7e32
Start ephemeral timer when seen status is synchronized via imap
2022-03-12 19:28:31 +00:00
bjoern
500e2d62a0
remove sentbox_move ( #3111 )
...
* remove SentboxMove
* adapt python test to removed sendbox_move option
* update CHANGELOG
2022-03-08 11:29:45 +01:00
Hocuri
34f5510f1f
Don't directly download messages from the Spam folder ( #3015 )
...
fix #3007
My approach is:
We don't download any messages from the spam folder anymore, and only download them if they were moved out. This means that is-it-spam logic only resides in spam_target_folder(). This has some implications, see the comments.
2022-02-10 09:06:22 +01:00
link2xt
6c6d47c89c
Fix CI
...
timeout_func_only makes pytest-rerunfailures work with pytest-timeout,
but it only works with default timeout_method.
See pytest-rerunfailures issue for details:
https://github.com/pytest-dev/pytest-rerunfailures/issues/99
2022-02-08 20:50:11 +00:00
link2xt
196075c031
imap: batch message deletion
2022-02-06 11:42:30 +00:00
link2xt
c4b0f773db
python: remove arbitrary timeouts from tests
...
pytest-timeout already handles all deadlocks and is configurable with
--timeout option. With this change it is possible to disable timeout
with --timeout 0 to run tests on extremely slow connections.
2022-02-06 12:52:48 +00:00
link2xt
276daf631e
imap: move messages in batches
...
Also change how NO response is treated. NO response means there is an
error moving/copying the messages. When there are no matching
messages, the response is "OK No matching messages, so nothing copied"
according to some RFC 9051 examples.
2022-02-05 22:15:46 +00:00
link2xt
afd8c0d879
Add smtp table
...
It replaces SendMsgToSmtp job.
Prepared outgoing SMTP payloads are stored in the database now rather
than files in blobdir.
2022-01-01 19:14:53 +00:00
holger krekel
d4ff47b6ac
allow timeout for internal configure tracker API
2022-01-13 14:57:43 +01:00
link2xt
3c38fa6b70
Add API for passphrase-protected accounts
...
To create encrypted account with account manager, call
dc_accounts_add_closed_account(). Open this account with
dc_context_open() using the passphrase you want to use for encryption.
When application is loaded next time and account manager is created,
it will open all accounts that have no passphrase set. For encrypted
accounts dc_context_is_open() will return 0. To open them, call
dc_context_open() with the correct passphrase. After opening, call
dc_context_start_io() on this account or just dc_accounts_start_io()
to start all accounts that are not started yet.
Support for legacy SQLite-based backup format is removed in this
commit.
2022-01-06 08:54:58 +00:00
link2xt
095b358aca
Test multidevice synchronization of Seen status
2022-01-03 23:12:29 +00:00
link2xt
3e0ce0e07a
test_no_old_msg_is_fresh: compare DC_EVENT_MSGS_NOTICED argument to chat id
...
data1 of DC_EVENT_MSGS_NOTICED contains chat id, not message id
2022-01-03 23:12:29 +00:00
link2xt
246cae5d9e
Remove inbox_watch option
...
Also resultified `get_watched_folders`.
Python test `test_moved_markseen` is modified to test using incoming
message instead of BCC-self message, because BCC-self message is
detected immediately in the Inbox.
2021-12-25 18:07:14 +00:00