holger krekel
0d4b6f5627
move io thread handling into own module
2020-04-13 17:39:31 +02:00
holger krekel
5c8f558f60
- simplify to offer start() and shutdown() as primary account methods, strike start_threads/stop_threads.
...
- introduce update_config(kwargs) method.
- group APIs a bit better
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
d3c6f530e2
introduce global plugin manager
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
holger krekel
bbc8bed39c
move temp_plugin to account
2020-04-13 17:39:31 +02:00
holger krekel
ec67b3975c
good bye global plugin manager ... we only do per-account object plugin_management for now
2020-04-13 17:39:31 +02:00
dignifiedquire
f8cd602cbd
happy python lint
2020-03-25 17:56:35 +01:00
dignifiedquire
20ef115eb2
fix various integration tests with the python bindings
2020-03-22 16:21:15 +01:00
dignifiedquire
9b4c195872
minimal get_next_event api
2020-03-22 01:07:06 +01:00
dignifiedquire
11fa60d690
stop python tests from blowing up
2020-03-21 23:37:52 +01:00
holger krekel
900a17fc00
another fix, thanks @adbenitez
2020-02-22 17:11:37 +01:00
holger krekel
78f36aaa0d
another bug fix
2020-02-22 17:11:37 +01:00
holger krekel
e064e02794
fix eventlogger
2020-02-22 17:11:37 +01:00
holger krekel
e22e5045f1
add missing file, some streamlining
2020-02-22 17:11:37 +01:00
holger krekel
087f35482b
factor out imex tracking
2020-02-22 17:11:37 +01:00
holger krekel
23ff5fea28
move towards pluggy
2020-02-22 17:11:37 +01:00
holger krekel
34347ccaf5
strike get_infostring
2020-02-22 17:11:37 +01:00
holger krekel
e704eb6cef
move eventlogging to own module, start distinguishing ll events
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
7368c01a8f
Add key_gen_type config option
2020-02-18 17:51:06 +01:00
Alexander Krotov
66d3440675
Update const.py
2020-02-18 11:58:11 +03:00
B. Petersen
c8a8dbbbae
adapt python bindings
2020-02-14 13:43:49 +01:00
Simon Laux
2e8409f146
address some of flubs comments
2020-02-14 11:28:55 +01:00
Simon Laux
ac4b2b9dfe
python bindings for archive and py tests
2020-02-14 11:28:55 +01:00
Simon Laux
5678562ce2
represent archivestate as enum
...
before it was a boolean, even though it is a 3 state
2020-02-14 11:28:54 +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
Simon Laux
afc9ed2274
fix python formatting
2020-02-09 12:36:37 +01:00
Simon Laux
5f4274b449
fix naming
2020-02-09 10:42:32 +01:00
Simon Laux
1fb75c1af3
rename dc_chat_get_mute_duration
...
to dc_chat_get_remaining_mute_duration
2020-02-08 13:29:24 +01:00
Simon Laux
6d80b3675a
dtransform mute chat to use relative durations
...
instead of absolute timestamps
2020-02-08 13:26:48 +01:00
Simon Laux
07d698f8dc
add python tests
2020-02-08 13:26:21 +01: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
98b3151c5f
Refactor keypair handling and expose storing keypairs on ffi
...
The user-visible change here is that it allows the FFI API to save
keys in the database for a context. This is primarily intended for
testing purposes as it allows you to get a key without having to
generate it.
Internally the most important change is to start using the
SignedPublicKey and SignedPrivateKey types from rpgp instead of
wrapping them into a single Key object. This allows APIs to be
specific about which they want instead of having to do runtime checks
like .is_public() or so. This means some of the functionality of the
Key impl now needs to be a trait.
A thid API change is to introduce the KeyPair struct, which binds
together the email address, public and private key for a keypair.
All these changes result in a bunch of cleanups, though more more
should be done to completely replace the Key type with the
SignedPublicKye/SignedPrivateKey + traits. But this change is large
enough already.
Testing-wise this adds two new keys which can be loaded from disk and
and avoids a few more key-generating tests. The encrypt/decrypt tests
are moved from the stress tests into the pgp tests and split up.
2020-02-06 22:00:29 +01:00
B. Petersen
a97ea0ad63
adapt python tests
2020-01-30 17:47:40 +01:00
B. Petersen
5ffdbd99e8
adapt python bindings, remove tests until we really have data
2020-01-30 17:47:39 +01:00
Alexander Krotov
bdbe9e1ca5
fix(python): add more checks for _thread_quitflag
2020-01-28 17:44:34 +03:00
Alexander Krotov
0c7f65222c
fix(python): add workaround for interrupt_idle race condition
2020-01-28 17:44:34 +03:00
holger krekel
47d14271ab
fix #1020 -- allow to set os_name in python bindings
2019-12-16 11:51:04 +01:00
holger krekel
5e777b3c51
fix test also for avatar deletion, use that drain filter while we in this code area :)
2019-12-13 01:17:48 +01:00
holger krekel
8ab3363097
add a test that runs until an avatar is send encrypted
2019-12-13 01:17:48 +01:00