holger krekel
|
7319cc6ce8
|
Introduce caching of configured live accounts in each test process
|
2022-05-05 18:26:37 +02:00 |
|
holger krekel
|
c8bfa98b6b
|
actually enable online account caching. previously it was creating (>100) online test accounts
|
2022-05-05 16:18:59 +02:00 |
|
holger krekel
|
32a9db6922
|
fix flaky test to not rely on timing
|
2022-05-04 13:29:08 +02:00 |
|
holger krekel
|
77498c17a5
|
reorder tests to provide a complex/offline/online distinction, also speeding up distributed test runs.
|
2022-05-04 13:17:08 +02:00 |
|
holger krekel
|
54c07f89f2
|
also guard the ac_process_ffi_event calling
|
2022-05-04 12:08:47 +02:00 |
|
holger krekel
|
cd4d265055
|
safer handling of calling account hooks, refined shutdown comment
|
2022-05-04 12:08:47 +02:00 |
|
holger krekel
|
81ee69010d
|
add a comment, fix a typo in debug message
|
2022-05-04 12:08:47 +02:00 |
|
holger krekel
|
138d5b7a02
|
fix segfaults with python runs -- i don't get them anymore, and can also control-c at will
|
2022-05-04 12:08:47 +02:00 |
|
holger krekel
|
ca59cbc898
|
make direct_imap idle usage safe from tests, so we never miss finishing direct_imap idle
|
2022-05-03 22:56:23 +02:00 |
|
holger krekel
|
21f72ad845
|
new --debug-setup option to show events during account setup.
|
2022-05-03 22:50:16 +02:00 |
|
holger krekel
|
40fd98d580
|
show logs for pseudo configured accounts (for online ones they are instantiated later)
|
2022-05-03 22:50:16 +02:00 |
|
holger krekel
|
0422d751d8
|
avoid instatiating a full blown Account object just for showing some core info
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
e44f68db83
|
prevent one strange traceback probably caused by ongoing shutdown
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
88cbf42c39
|
fix various tests
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
45157f79a3
|
fix examples
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
f5157392b6
|
some renaming and some docstrings
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
f631ec3a7c
|
shift startio/init machinery into PendingConfigure class
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
a9b2750ec9
|
slight renamings
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
7fbdb42695
|
remove _configtracker and write a tested "PendingConfigure" helper class for managing configure/started states for test accounts
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
026dd4480e
|
add --extra-info CLI option (defaults to False for interactive runs)
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
b373e7acba
|
more renames
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
d2ca54c167
|
provide for meaningful names for bringing accounts online for test functions
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
e070284a09
|
strike setting "displayname" in test plugin and refine two tests which implicitely relied on this
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
e4e02ea3c0
|
improve error messages during live creation of accounts
|
2022-05-03 19:35:03 +02:00 |
|
holger krekel
|
a947980eb6
|
slight reorg for creating accounts from liveconfig
|
2022-05-03 19:35:03 +02:00 |
|
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 |
|