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
d4e1c1b109
refine handling of accepted contacts in example
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
91cdc76414
refactor docs and ffi/high level event handling to pass all tests again
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
6213917089
start some docs
2020-04-13 17:39:31 +02:00
holger krekel
fb33c31378
fix a couple of issues wrt to configuring move/mvbox behaviour in tests
2020-04-13 17:39:31 +02:00
holger krekel
79f5e736b0
make eventlogger module a global plugin
2020-04-13 17:39:31 +02:00
holger krekel
0d4b6f5627
move io thread handling into own module
2020-04-13 17:39:31 +02:00
holger krekel
c851f9d5a3
simplify internal thread handling
2020-04-13 17:39:31 +02:00
holger krekel
2d74514dd0
add some incoming/outgoing message hooks
2020-04-13 17:39:31 +02:00
holger krekel
84012e760e
refine low level event handling
...
slight refactor on printing
2020-04-13 17:39:31 +02:00
holger krekel
6baef49f9d
add after_shutdown hook
2020-04-13 17:39:31 +02:00
holger krekel
f55d4fa73a
rename process_low_level_event to process_ffi_event
2020-04-13 17:39:31 +02:00
holger krekel
ce00c627d4
don't run Eventlogging by default -- the tests instantiate it, though.
2020-04-13 17:39:31 +02:00
holger krekel
cf6391d51b
move event tracking to new tracker.py file
...
some api cleanups
2020-04-13 17:39:31 +02:00
holger krekel
57311d731e
simplify logging
2020-04-13 17:39:31 +02:00
holger krekel
95d45b386f
separate out FFI eventracking to only be used in running tests
2020-04-13 17:39:31 +02:00
B. Petersen
3c34096392
add a failing test that crashes when sending a message to a self-only group with bcc_self enabled
2020-03-22 18:23:55 +01:00
Alexander Krotov
e7e4821804
Reset group member list when we are added to the group
...
This makes test_synchronize_member_list_on_group_rejoin pass.
2020-03-19 17:03:31 +03:00
Alexander Krotov
9654802acc
Add failing group rejoin test
2020-03-19 17:03:31 +03:00
holger krekel
78f36aaa0d
another bug fix
2020-02-22 17:11:37 +01:00
holger krekel
34347ccaf5
strike get_infostring
2020-02-22 17:11:37 +01:00
holger krekel
f6d71ed8ef
strike one Account parameter, always do eventlogging
2020-02-22 17:11:37 +01:00
Alexander Krotov
d9dda44409
Add integration test for RSA and Ed25519 keys
...
Test that two chat clients using different key types can communicate
using Autocrypt.
2020-02-18 17:51:06 +01:00
holger krekel
5c17ec5f01
use new URL format and service provided by mailadm
2020-02-11 22:48:24 +01:00
Alexander Krotov
52520635ea
Fix a typo ("requests")
2020-02-11 22:32:35 +03:00
Simon Laux
8461cf6443
Merge pull request #1143 from deltachat/feat_mute_chat
...
feat: mute chat
2020-02-10 01:39:50 +01:00
Alexander Krotov
bb10501f56
Improve test_one_account_send_bcc_setting
...
Clone the first account and check that second device actually sees the
message copied via BCC-to-self.
2020-02-10 01:17:28 +01:00
Alexander Krotov
c4d5f657da
python tests: remove peek_online_config()
...
Using peek_online_config() results in a message being sent to some
other account, used by previous test. If tests are run in parallel,
for example with pytest-xdist, we could be sending a message to a still
online DC client.
2020-02-10 01:17:28 +01:00
Floris Bruynooghe
e525c42c7d
Unmute should also raise exceptions
...
And tests should not care about return values.
2020-02-09 19:12:21 +01:00
Floris Bruynooghe
0242322d24
Tweak error halding a little
...
- Python should raise exceptions on error. Not return False.
- Negative durations are nonense.
- ChatID validity is already checked by the Rust API, let's not duplicate.
2020-02-09 18:01:42 +01:00
Alexander Krotov
61daf7218d
Preconfigure the key in clone_online_account()
...
This avoids generating the key in test_ac_setup_message
2020-02-08 22:39:34 +00:00
Floris Bruynooghe
dc6671fc4e
Add an integration tests which generates a key
...
Configuring an online account generates a key, we would like this
code-path tested too. So add some functionality to the AccountManager
to not use the pre-generated keys.
Because this slows down interactively running the tests by hand add an
ignored marker which only runs if --ignored is used. This name was
chosen because this matches the naming used by rust/cargo #[ignored].
The difference however is that --ignored on cargo *only* runs ignored
tests while here it runs *all* tests.
To ensure the ignored/slow tests are run on CI we add it as an
argument to the tox configuration, which is used by the CI to run the
tests.
2020-02-08 22:39:34 +00:00
Simon Laux
07d698f8dc
add python tests
2020-02-08 13:26:21 +01:00
Floris Bruynooghe
1144a536a5
Pre-generate more keys for use in integration tests
2020-02-08 08:28:41 +00:00
Floris Bruynooghe
515c753d11
Use pre-generated keys for python integration tests
...
This changes the AccountMaker to use pre-generated keys when
available, speeding up test runs.
As a side-effect we no longer need to compile the integration tests in
release mode with debug symbols. Losing debug symbols (-g) means
cargo no longer wants to recompile everything all the time too.
Tested locally and seems to works.
2020-02-08 08:28:41 +00:00
Floris Bruynooghe
fc0292bf8a
Rename save_self_keypair
...
For the ffi rename to dc_preconfigure_keypair. For the internal API
to store_self_keypair.
2020-02-06 22:00:29 +01:00
Floris Bruynooghe
c41bdaa2b7
Avoid for-else loop
...
And here I thought this pythonic
2020-02-06 22:00:29 +01:00