Alexander Krotov
4f8e7e0166
python: fix more flaky tests
...
This change fixes test_immediate_autodelete and maybe other tests using
DirectImap.get_all_messages().
2020-08-08 23:04:05 +03:00
Alexander Krotov
da5796e8a6
Fix python bindings call to dc_chat_get_remaining_mute_duration
2020-08-08 10:47:48 +03:00
Alexander Krotov
63dd3c91e1
python tests: do not enable strict certificate checks by default
...
Since introduction of provider database, these certificate checks are
enabled for test servers anyway, but this setting prevents usage of
local servers with self-signed certificates.
2020-07-28 01:40:35 +02:00
holger krekel
2cbf2d8f65
fix bug reported by @adbenitez
2020-07-20 16:00:00 +02:00
holger krekel
06166f7956
make group left messages call the ac_member_removed hook, as per wishes from @adbenitez
2020-07-18 19:58:15 +02:00
holger krekel
933b14eedf
fix #1480
...
make ac_member_removed and ac_member_added work if the action was triggered remotely.
also pass in the "actor" contact so one can know who did this.
2020-07-16 11:56:13 +02:00
holger krekel
650bd822bf
some cleanup to finalize PR
2020-07-16 11:55:51 +02:00
holger krekel
37943d3d16
fix another flaky test
2020-07-16 11:55:51 +02:00
holger krekel
ccebca5f99
fix python timeout settings
2020-07-16 11:55:51 +02:00
holger krekel
e07869ae95
improve debugging
2020-07-16 11:55:51 +02:00
holger krekel
90be708791
fix dump of messages to files when a test fails
2020-07-16 11:55:51 +02:00
holger krekel
a27b379ce0
fix #1720 -- don't wait for the daemon eventhread to terminate but count on it to eventually die
2020-07-16 11:55:51 +02:00
Alexander Krotov
49a6a5b23c
testplugin.py: print HTTP response text on error
2020-07-12 22:58:57 +03:00
Alexander Krotov
7da69a4644
Add dc_msg_get_ephemeral_{timer, timestamp}()
2020-07-11 22:25:17 +03:00
Alexander Krotov
7d048ac419
Add autodelete timers
2020-06-29 23:04:34 +03:00
holger krekel
07236efc45
fix bcc_self to remain "0" for testrun/fivechat test accounts
2020-06-23 08:06:32 +02:00
Hocuri
351e5dc6f3
Add Python test
2020-06-17 10:58:27 +02:00
Alexander Krotov
dad6381519
run_bot_process: remove account from _accounts before starting the bot
...
Otherwise wait_configure_and_start_io() will start account, and it will
operate on the same database as the bot.
2020-06-13 06:36:07 +02:00
holger krekel
554160db15
also catch DC_KEY_GEN_RSA2048 as const
2020-06-11 09:22:31 +02:00
Floris Bruynooghe
d8bd9b0515
Import constants from cffi
...
This replaces the constants list with those compiled by CFFI. There
is perhaps not much point in having this module anymore but this is
easy to do.
2020-06-11 09:22:31 +02:00
Floris Bruynooghe
27b75103ca
Refactor cffi build script to extract defines from header file
...
This adds functionality to the cffi build script to also extract
defines so that we can ask the compiler to figure out what the correct
values are. To do this we need to be able to locate the header file
used in the first place, for which we add a small utility in the
header file itself guarded to only be compiled for this specific case.
2020-06-11 09:22:31 +02:00
holger krekel
e7dd74e4b1
simplify configure() and don't keep state on the account in non-test mode
2020-06-10 12:47:49 +02:00
holger krekel
0efb2215e4
renamings and parallel sending
2020-06-09 14:39:00 +02:00
holger krekel
0c8f951d8f
address @hocuri comment -- remove as_contact() as it's synonym with create_contact
...
and the latter is already an established API and conveys better that a contact
object will be created if it doesn't exist.
2020-06-09 14:39:00 +02:00
holger krekel
0bb4ef0bd9
introduce chat.num_contacts() as a more efficient shortcut
2020-06-09 14:39:00 +02:00
holger krekel
f93a863f5f
fix and steamline tests and test setup
2020-06-09 14:39:00 +02:00
holger krekel
f263843c5f
route all flexible contact add/remove through account.as_contact(obj)
2020-06-09 14:39:00 +02:00
holger krekel
503202376a
remove logid from Account creation, one can now just use the "displayname" for log purposes
2020-06-09 14:39:00 +02:00
holger krekel
ca70c6a205
remove account.create_chat_by_message in favor of message.create_chat(), simplifing the API
2020-06-09 14:39:00 +02:00
holger krekel
7d5fba8416
refine contact API and introduce account.create_chat() helper
...
strike create_chat_by_contact in favor of contact.create_chat()
2020-06-09 14:39:00 +02:00
holger krekel
3a85b671a1
remove acfactory.get_chat() in favour of account.create_chat(account2) directly working.
2020-06-09 14:39:00 +02:00
holger krekel
4fdf496cac
refine one more test to "newstyle"
2020-06-08 16:31:21 +02:00
holger krekel
d8bbe2fcce
refine test / chat API
2020-06-08 16:31:21 +02:00
holger krekel
b6cc44a956
integrate direct imap test in existing BCC test
2020-06-08 16:31:21 +02:00
holger krekel
0105c831f1
make direct_imap a permanent feature of online accounts
2020-06-08 16:31:21 +02:00
holger krekel
d40f96ac65
fixing imap interactions
2020-06-08 16:31:21 +02:00
holger krekel
69135709ac
more refines and test fixes
2020-06-08 16:31:21 +02:00
holger krekel
612a9d012c
snap using imapclient
2020-06-08 16:31:21 +02:00
bjoern
ec441b16f1
Revert "Enable strict TLS certificate checks by default"
...
This reverts commit 6d9ff3d248 .
2020-06-06 18:42:54 +03:00
Alexander Krotov
6d9ff3d248
Enable strict TLS certificate checks by default
2020-06-06 00:08:29 +02:00
holger krekel
d97d9980dd
cleanup
2020-06-05 23:28:27 +02:00
holger krekel
4ad4d6d10d
Update python/src/deltachat/direct_imap.py
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2020-06-05 23:28:27 +02:00
holger krekel
04bdfa17f7
improve shutdown order
2020-06-05 23:28:27 +02:00
holger krekel
7a5759de4b
some streamlining and test fixing
2020-06-05 23:28:27 +02:00
holger krekel
e29dcbf8eb
remove wrong inbox folders
2020-06-05 23:28:27 +02:00
holger krekel
469451d5dd
rework imap structure logging
2020-06-05 23:28:27 +02:00
holger krekel
af33c2dea7
test pass again
2020-06-05 23:28:27 +02:00
holger krekel
e66ed8eadb
shift tests away a little, mark "ignored" for regular pytest runs
2020-06-05 21:59:33 +02:00
Hocuri
05e1c00cd1
fix: update message ids correctly
...
Fixes #1495
2020-06-05 16:27:22 +02:00
B. Petersen
ec601a3381
revert renaming of data2_str to data3_str, while this looks clearer at a first glance, it would mean to introduce much noise in the existing bindings and understandings
2020-05-25 12:58:21 +02:00