iequidoo
d40ec88b94
test(python): Wait for bot's DC_EVENT_IMAP_INBOX_IDLE before sending messages to it ( #5699 )
...
Bot processes are run asynchronously, so we shouldn't send messages to a bot before it's fully
initialised and skipped existing messages for processing, i.e. before DC_EVENT_IMAP_INBOX_IDLE is
emitted.
2024-06-23 01:46:40 -03:00
link2xt
b5e2ded47a
Revert "test: Set fetch_existing_msgs for bots ( #4976 )"
...
This reverts commit 25b8a482bc .
2024-06-20 02:00:49 +00:00
iequidoo
3b91815240
test(python): Set delete_server_after=1 ("delete immediately") for bots ( #4976 )
...
Test bots are run with `fetch_existing_msgs` set, so messages must be deleted immediately not to be
processed again after a bot redeployment.
2024-06-16 22:16:33 -03:00
iequidoo
25b8a482bc
test: Set fetch_existing_msgs for bots ( #4976 )
...
A bot process is run asynchronously, so some messages can arrive before the bot is fully
initialised.
2024-06-05 18:27:20 -03:00
link2xt
7cfab9a931
test: set configuration after configure() finishes
...
This allows to overwrite settings changed
when XCHATMAIL capability is detected.
2024-05-15 06:27:57 +00:00
holger krekel
acff8205e2
test: fix pytest compat ( #5317 )
...
seems pytest_report_header has changed with pytest incompatible but we
don't need it anyway so we can just leave it out.
2024-03-04 21:07:09 +00:00
iequidoo
e16322d99d
test: get_protected_chat(): Use FFIEventTracker instead of dc_wait_next_msgs() ( #5207 )
...
The way it was implemented it threw out all remaining messages after finding the next incoming
message. Better use FFIEventTracker functions, they are used in all the tests anyway.
2024-03-02 12:12:26 -03:00
missytake
bbc6febb72
test: no timeout in SetupPlugin
2024-01-17 14:20:29 +01:00
missytake
7f7f42d721
test: Ensure that member is added before yielding chat
2024-01-17 14:20:29 +01:00
missytake
36cab40ac1
test: add get_protected_chat to testplugin.py
2024-01-17 14:20:29 +01:00
holger krekel
9ca049051c
fix and streamline a little
2023-11-10 16:46:40 +01:00
Sebastian Klähn
790509676f
fix: remove unused --liveconfig option
...
close #4892
2023-11-10 16:46:40 +01:00
link2xt
4e21917c0e
feat: enable sync messages by default
2023-11-05 21:11:47 +00:00
link2xt
6aae0276da
test: use instant accounts instead of mailadm
2023-10-30 00:15:22 +00:00
link2xt
532e9cb09a
refactor: ignore public key argument in dc_preconfigure_keypair()
...
Public key can be extracted from the secret key file.
2023-09-30 19:16:23 +00:00
link2xt
740f43a2d6
fix: do not resync IMAP after initial configuration
...
If there was no previous `configured_addr`,
then there is no need to run IMAP resync.
2023-07-17 16:38:09 +00:00
link2xt
88759c815b
refactor(python): flatten the API of deltachat module
2023-07-03 16:19:31 +00:00
link2xt
b2993242e4
docs(python): document pytest fixtures
...
These docstrings are displayed by `pytest --fixtures`
when `deltachat` package is installed from PyPI.
2023-06-05 18:34:27 +00:00
iequidoo
0a2200c2c8
python: Wait for initial Resync in the bot tests
2023-03-31 17:15:02 -03:00
link2xt
7e5a8714a0
Add scripts/codespell.sh and spellcheck
2023-03-03 18:40:36 +00:00
link2xt
d1d43e889a
python: add more type annotations
2023-02-27 13:07:35 +00:00
link2xt
48fee4fc92
python: replace "while 1" with "while True"
...
This makes pyright recognize that the function never returns implicitly.
2023-02-18 11:31:07 +00:00
link2xt
6ee165fddc
python: type annotations for testplugin.py
2023-02-16 17:48:29 +00:00
link2xt
cd3f1fe874
python: autoformat with black
2023-02-15 17:15:43 +00:00
link2xt
01653a881a
python: do not import print function
2023-02-15 16:28:16 +00:00
link2xt
817760a6ef
python: upgrade from .format() to f-strings
...
They are supported since Python 3.5.
2023-02-08 15:44:34 +00:00
link2xt
fac7b064b4
Refine Python CI
...
Add lint environment to `deltachat-rpc-client/`
and set line length to 120, same as in `python/`.
Switch from flake8 to ruff.
Fix ruff warnings.
2023-01-20 16:53:21 +00:00
link2xt
f4c674fa98
python: set reasonable timeouts for account requests
...
`requests` library does not have a timeout at all by default.
2023-01-06 11:43:55 +00:00
link2xt
839021f9eb
python: enable certificate checks in cloned accounts
2022-08-15 14:40:33 +00:00
link2xt
b88042a902
python: display configuration failure error
...
When configure fails, display error comment in pytest failure message.
2022-06-20 12:39:39 +00:00
adbenitez
a96a4362cd
add missing Message API
2022-06-10 07:57:17 -04:00
Asiel Díaz Benítez
4f02c811a3
update python API ( #3394 )
2022-06-04 18:12:38 +02:00
adbenitez
17aab01eaa
apply black with new line-length == 120
2022-05-31 23:05:20 -04:00
adbenitez
16e0f0e986
apply isort and black formatters, add format checking to CI
2022-05-29 21:11:49 -04: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
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
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