iequidoo
0b44886b62
Add a test for bug "Partially downloaded messages are received out of order" ( #3688 )
...
+ add Message.download_state property.
2022-11-23 23:51:50 +04:00
Hocuri
06b376d242
Bugfix: Don't let malformed From: headers block the receiving pipeline ( #3769 )
...
That's a bug which @Simon-Laux and probably also @hpk42 had, where one malformed incoming (Spam-) mail blocked the receiving of all emails coming after it.
The problem was that from_field_to_contact_id() returned ContactId::UNDEFINED, and then lookup_by_contact() returned Err.
2022-11-22 21:10:26 +01:00
bjoern
c1f9d8f7a1
allow deleting referenced contacts in UI ( #3751 )
...
* allow deleting referenced contacts in UI
we are quite often getting requests of users
who want to get rid of some contact in the "new chat" list.
there is already a "delete" option,
but it does not work for referenced contacts -
however, it is not obvious for users that a contact is in use,
esp. of some mailing list or larger chat, old contacts, whatever.
this pr revives an old idea [^1] of "soft deleting" referenced contacts -
this way, the user can remove the annoying entry
without the need to understand complicated things
and finally saying that deletion is impossible :)
once the contact is reused, it will reappear,
however, this is already explained in the confirmation dialog of the UIs.
technically, this pr was simpler as expected as we already have
a Origin::Hidden, that is just reused here.
[^1]: https://github.com/deltachat/deltachat-core/pull/542
* update rust doccomment
* update changelog
* avoid races on contact deletion
chats may be created between checking for "no chats" and contact deletion.
this is prevented by putting the statement into an EXCLUSIVE transaction.
* fix failing python test
2022-11-15 11:02:47 +01:00
link2xt
17276179e7
python: fix test_getinfo after bcc_self default change
2022-09-25 10:29:48 +00:00
link2xt
335d780f3e
Fix Python test for bcc_self
2022-09-25 10:09:26 +00:00
link2xt
5b518e588f
Remove StockMessage.action_by_contact() ( #3518 )
...
Use separate strings for "... by me" and "... by contact"
to make them easier to translate.
2022-09-11 20:38:34 +02:00
missytake
8533057881
python tests: actually the contacts aren't unified with AEAP
...
This reverts commit 0aaa33a0d2fd75ff6297ba681ed9de4127bbc995.
2022-08-15 01:07:42 +02:00
missytake
6aa5c60963
tests: ensure that contact of ac1 stays the same
2022-08-15 01:07:42 +02:00
missytake
f548b248eb
use a verified group for the AEAP test
2022-08-15 01:07:42 +02:00
missytake
5e06568ac6
python test for AEAP flow
2022-08-15 01:07:42 +02:00
missytake
c9fc353b60
actually, since AEAP it's fine if the addr changes
2022-08-15 01:07:42 +02:00
link2xt
d72cf3fb43
mimeparser: set is_system_message for "group image changed" messages
2022-07-24 13:05:14 +00:00
link2xt
ed5fc820c2
python: move most of setup.py to pyproject.toml
2022-07-14 14:39:39 +02:00
link2xt
4f2c68e5a4
Accept more error variants in nicer_configuration_error
...
musl libc returns "failed to lookup address information: Name does not resolve" in some cases.
2022-07-06 22:58:56 +00:00
link2xt
548335082b
Use AUDITWHEEL_PLAT variable
...
manylinux images set AUDITWHEEL_PLAT variable
which is used as a default --plat value by auditwheel.
2022-06-25 21:13:07 +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
link2xt
becbb03d80
python: don't use devnull@testrun.org in test_add_remove_member_remote_events()
...
Otherwise testrun.org refuses to send the message at all,
because it knows devnull@testrun.org does not exist,
and the message doesn't reach ac2.
2022-06-19 17:09:02 +00:00
adbenitez
a96a4362cd
add missing Message API
2022-06-10 07:57:17 -04:00
adbenitez
f94d7d9ea5
add tests
2022-06-10 02:30:37 -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
link2xt
b7d2828f60
Trim last newline in the chat encryption info
...
Android seems to display it, making the message box larger.
2022-05-21 17:03:48 +00:00
link2xt
8168bcece5
Improve Chat.get_encryption_info() format
...
Group contacts by peerstate and make it easier
to find contacts that prevent encryption by sorting them
to the top of the list.
2022-05-14 14:01:46 +02:00
holger krekel
cffa101419
remove usage of py in favor of pathlib
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
32a9db6922
fix flaky test to not rely on timing
2022-05-04 13:29:08 +02:00
holger krekel
77498c17a5
reorder tests to provide a complex/offline/online distinction, also speeding up distributed test runs.
2022-05-04 13:17:08 +02:00
holger krekel
54c07f89f2
also guard the ac_process_ffi_event calling
2022-05-04 12:08:47 +02:00
holger krekel
cd4d265055
safer handling of calling account hooks, refined shutdown comment
2022-05-04 12:08:47 +02:00
holger krekel
ca59cbc898
make direct_imap idle usage safe from tests, so we never miss finishing direct_imap idle
2022-05-03 22:56:23 +02:00
holger krekel
88cbf42c39
fix various tests
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
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
holger krekel
f11c3dd3e3
fix bench test
2022-05-03 19:35:03 +02:00
holger krekel
2494613583
- perform direct_imap init in testplugin instead of global deltachat
...
plugin, probably also helping to avoid some segfeaults during teardown
- some API renaming on the side (too hard to split into separate commit, sorry)
2022-05-03 19:35:03 +02:00
holger krekel
77c60e7450
refine test support function name
2022-05-03 19:35:03 +02:00
holger krekel
04dd2d93d0
trim online account creation to a single get_online_accounts() function
2022-05-03 19:35:03 +02:00
holger krekel
5e5710ecce
streamline configuration handling for test accounts, removing one layer of flags
2022-05-03 19:35:03 +02:00
holger krekel
c1b33a66c4
refactor "quiet" parameter away and provide more precise logging-control
2022-05-03 19:35:03 +02:00
holger krekel
0e3165d724
unify get_unconfigured_account and make_account
2022-05-03 19:35:03 +02:00
holger krekel
3e12eab0b5
remove make_account from get_online_config and rename the latter to get_next_liveconfig to avoid one indirection
2022-05-03 19:35:03 +02:00
holger krekel
87365e4a43
- remove superflous early set_configs to separate config / account making better
...
- avoid low-level dc_* API access from testplugin
2022-05-03 19:35:03 +02:00
holger krekel
5e39a13bf6
refine waiting for initial startup waiting for "INBOX: Idle" ready
...
this slows down initialization for tests but provides more stability in my runs
2022-05-03 19:35:03 +02:00