Commit Graph
100 Commits
Author SHA1 Message Date
holger krekel 1d34e1f27a attempt to fix #1589 -- if we trigger a reconnect we don't need to "error!" which shows a toast to the user.
the next reconnect will report if it can't connect.
2020-06-12 11:57:38 +02:00
holger krekel 554160db15 also catch DC_KEY_GEN_RSA2048 as const 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 95b40ad1d8 avoid hello.com and use example.org 2020-06-09 14:39:00 +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 1083cab972 as discussed with @dignifiedquire only do package-building and upload on master, not on branches. 2020-06-09 14:23:07 +02:00
holger krekel 4fdf496cac refine one more test to "newstyle" 2020-06-08 16:31:21 +02:00
holger krekel 6497e6397d merge direct imap tests into their already existing counterparts 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
holger krekel 30c76976fc update links and add a little boilerplate / status info 2020-06-06 19:20:37 +02:00
holger krekel d97d9980dd cleanup 2020-06-05 23:28:27 +02:00
holger krekelandHocuri 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 82731ee86c fix test 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 882f90b5ff more cleanups, don't run the test 30 times anymore -- it's too wasteful
and doesn't gurantee test failure.
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 d076ab4d6d fix grouping / helper function 2020-06-05 21:59:33 +02:00
holger krekel e66ed8eadb shift tests away a little, mark "ignored" for regular pytest runs 2020-06-05 21:59:33 +02:00
holger krekel 477e689c74 fix python lint 2020-05-24 22:11:14 +02:00
holger krekel d9de33820f add a stress test 2020-05-24 21:25:13 +02:00
holger krekel fa3ee4205d refactor some python infra, and don't do shutdown on __del__, it's not prepared for running during teardown 2020-05-24 15:48:12 +02:00
holger krekel 7f4627356b test and fix buggy parsing of incoming message which would show MDNs as empty incoming messages 2020-05-24 15:22:55 +02:00
holger krekel a068b82671 actually this test passes, hum -- but there is a problem i swear 2020-05-24 08:10:03 +02:00
holger krekel d4ddc2f9da make wheel building work again -- switch manylinux2014 (#1522) 2020-05-23 21:57:50 +02:00
holger krekel e55dc2213a fix python lifecycles so that termination works 2020-05-23 10:17:56 +02:00
holger krekel 4b4e6e1732 use bjoern's naming suggestion 2020-05-22 18:44:57 +02:00
holger krekel d0686ada83 a round of renaming towards dc_io_* methods for start/stop/io scheduling 2020-05-22 18:44:57 +02:00
holger krekel c43285f6ac fix python data2/string handling and reduce extra code needed 2020-05-22 16:24:46 +02:00
holger krekel 229606fcc5 fix last failing test -- make account.shutdown() robust against getting called from event thread 2020-05-22 15:12:55 +02:00
holger krekel 23ceda5ad9 add notes from little a/v we just did 2020-05-22 14:58:17 +02:00
holger krekel 371a7552f5 fix superflous shutdowns -- those are called automatically after the test
function ends
2020-05-22 13:06:20 +02:00
holger krekel 641955a1ec try fix inbox ordering issue 2020-05-22 13:06:13 +02:00
holger krekel f97538a399 slightly refine increation tests wrt to ordering 2020-05-22 12:46:12 +02:00
holger krekel 7c8758dc26 fix ordering issues with test_forward_increation 2020-05-22 12:24:52 +02:00
holger krekel c43e7cdbdc fix lint and a typo 2020-05-22 10:31:41 +02:00
holger krekel ad522cd798 simplify and speedup configuration handling
refactor conftest.py away
2020-05-20 22:15:27 +02:00
holger krekel fedc946886 fix online configure tests 2020-05-20 19:44:06 +02:00
holger krekel c3458ec59f fix test 2020-05-20 19:17:48 +02:00
holger krekel 2f09bb468e fix configure_canceled test 2020-05-20 19:10:36 +02:00
holger krekel 2279e18329 fix logging and docstrings 2020-05-20 18:57:51 +02:00
holger krekel 0ec5b8d6dd fix --ignored handling 2020-05-20 18:10:13 +02:00
holger krekel 1029c63a20 python fixes 2020-05-20 17:21:57 +02:00
holger krekel 9e43540dfa fix docs, some renames 2020-05-20 17:05:00 +02:00
holger krekel 4855584de9 rename eventlogger to events 2020-05-20 16:37:27 +02:00
holger krekel f67c86cb39 refactor callback thread handling 2020-05-20 16:32:12 +02:00
holger krekel b91d7f314b progress 2020-05-20 14:52:17 +02:00
holger krekel 3703a1c36c refinement startup 2020-05-20 13:31:45 +02:00
holger krekel a6409dcd27 attempt to fix cb/python event handling 2020-05-19 15:02:05 +02:00
holger krekel 598dc86ca5 make sure we don't garble output during test runs by more carefully
switching logging on/off globally
2020-05-15 21:19:57 +02:00
holger krekel 4724101e75 fix upload error?! (#1454)
* use latest setuptools 
* clear indexes also if nothing was uploaded to dc/* branches
2020-05-06 17:31:43 +02:00
holger krekel 7c33c7f7da expose obtaining list of fresh messages to python 2020-04-21 13:53:56 +02:00
holger krekel 70c082a1b1 remove all member_added/remove_events 2020-04-19 21:15:45 +02:00
holger krekel 02cda1e611 refine member/add remove further, and introduce ac_outgoing_message 2020-04-19 21:00:55 +02:00
holger krekel a1c82eaea6 refine bot testing and ac_member* handling 2020-04-19 21:00:55 +02:00
holger krekel 9eda710538 refine member-added and member-removed plugin hooks to signal the sender (who added/removed a contact )
add ac_chat_modified hook event
add account.get_contact_by_addr (thanks @r10s)
2020-04-19 21:00:55 +02:00
holger krekel 76b93274e8 use latest sphinx -- seems to work again 2020-04-13 17:39:31 +02:00
holger krekel ea455323d8 increase timeout while waiting for rsa2048 keygen -- default timeout is 30secs, and it sometimes takes 31 or more on the CI machines 2020-04-13 17:39:31 +02:00
holger krekel 1855f84fe0 fix bug in that remove-contact failed on new groups where we didn't have the peerstate of the removed-contact yet 2020-04-13 17:39:31 +02:00
holger krekel 323d996d5f a few streamlinings 2020-04-13 17:39:31 +02:00
holger krekel 1b858393c5 make create_contact accept email addresses that parse into routable_email and display_name 2020-04-13 17:39:31 +02:00
holger krekel ca88c5b41c rename hooks to use "ac_" (account) and "dc_" (global) 2020-04-13 17:39:31 +02:00
holger krekel 7e1470ea46 refactor preconfigure handling to not break deltabot's usage of deltachat's test fixtures and
relax timestamp comparisons
2020-04-13 17:39:31 +02:00
holger krekel f98d0bbc1f fix failing sync test 2020-04-13 17:39:31 +02:00
holger krekel 2a34022619 refine example doc and address https://github.com/deltachat/deltachat-core-rust/pull/1307#pullrequestreview-380876587 2020-04-13 17:39:31 +02:00
holger krekel 57f879a6ba fix buffer handling so that the group-tracking bot example passes 2020-04-13 17:39:31 +02:00
holger krekel d4ba09c753 refactor bot-setup and testing into a helper function 2020-04-13 17:39:31 +02:00
holger krekelandAsiel Díaz Benítez 6c3a8448cf Apply suggestions from code review
some fixes thanks to @adbenitez

Co-Authored-By: Asiel Díaz Benítez <asieldbenitez@gmail.com>
2020-04-13 17:39:31 +02:00
holger krekel d4e1c1b109 refine handling of accepted contacts in example 2020-04-13 17:39:31 +02:00
holger krekel a1d5120e58 sipmlify plugins and tests and remove superflous core event 2020-04-13 17:39:31 +02:00
holger krekel 724e1ea97e simplify example 2020-04-13 17:39:31 +02:00
holger krekel 6f8067ffd3 address @adbenitez and @r10s comments 2020-04-13 17:39:31 +02:00
holger krekel f38386d164 fix member_added/member_removed event with tests and and provide a group-tracking example 2020-04-13 17:39:31 +02:00
holger krekel d66829702f fix #164 add MEMBER_REMOVED event and member_removed plugin python hook 2020-04-13 17:39:31 +02:00
holger krekel 36b50436d7 add Message.mark_seen shortcut 2020-04-13 17:39:31 +02:00
holger krekel 33dd747ec7 some more test setup refinements and make example testing part of tox runs 2020-04-13 17:39:31 +02:00
holger krekel d8e14d9993 refine example and make Contact accept Account object 2020-04-13 17:39:31 +02:00
holger krekel f61b9f7964 add a test echo_and_quit examples 2020-04-13 17:39:31 +02:00
holger krekel 91cdc76414 refactor docs and ffi/high level event handling to pass all tests again 2020-04-13 17:39:31 +02:00
holger krekel a1379f61da fix up docs 2020-04-13 17:39:31 +02:00
holger krekel a665d6de59 add chat.is_group() API to help callers avoid having to check with constants
deprecate get_type()
2020-04-13 17:39:31 +02:00
holger krekel 6a6a719ab6 shift pytest support code into deltachat package so deltabot can make use of the test infrastructure 2020-04-13 17:39:31 +02:00
holger krekel 84f17b7539 emit "DC_EVENT_MEMBER_ADDED" and python plugin event "member_added" for securejoin or non-securejoin additions of a contact to a chat. also fixup some docs 2020-04-13 17:39:31 +02:00
holger krekel 57141e478c also add a changelog for plugin things 2020-04-13 17:39:31 +02:00
holger krekel 6213917089 start some docs 2020-04-13 17:39:31 +02:00