link2xt
1d522edb01
python: fix Chat.is_group() documentation
...
False is returned not only for 1:1 chat, but also in
other cases, such as mailing lists.
2022-05-23 11:56:56 +02:00
holger krekel
cffa101419
remove usage of py in favor of pathlib
2022-05-09 21:22:19 +02:00
holger krekel
1d7d201b5b
remove a log line and a return
2022-05-09 21:22:19 +02:00
holger krekel
c0e4e12138
Introduce caching of configured live accounts in each test process
2022-05-09 21:22:19 +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
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
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
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
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
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
link2xt
5ef2a85c10
python: do not crash in get_locations() when location has no marker
2022-04-25 15:05:34 +02: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
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
holger krekel
d4ff47b6ac
allow timeout for internal configure tracker API
2022-01-13 14:57:43 +01:00