deltachat-rpc-client 2.1.0__tar.gz → 2.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {deltachat_rpc_client-2.1.0/src/deltachat_rpc_client.egg-info → deltachat_rpc_client-2.3.0}/PKG-INFO +1 -1
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/pyproject.toml +1 -1
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/pytestplugin.py +6 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0/src/deltachat_rpc_client.egg-info}/PKG-INFO +1 -1
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/tests/test_multidevice.py +3 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/tests/test_something.py +7 -2
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/LICENSE +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/README.md +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/setup.cfg +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/__init__.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/_utils.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/account.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/chat.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/client.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/const.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/contact.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/deltachat.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/events.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/message.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/py.typed +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/rpc.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client.egg-info/SOURCES.txt +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client.egg-info/dependency_links.txt +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client.egg-info/entry_points.txt +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client.egg-info/top_level.txt +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/tests/test_account_events.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/tests/test_chatlist_events.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/tests/test_iroh_webxdc.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/tests/test_key_transfer.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/tests/test_securejoin.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/tests/test_vcard.py +0 -0
- {deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/tests/test_webxdc.py +0 -0
{deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/pytestplugin.py
RENAMED
|
@@ -13,6 +13,12 @@ from . import Account, AttrDict, Bot, Chat, Client, DeltaChat, EventType, Messag
|
|
|
13
13
|
from ._utils import futuremethod
|
|
14
14
|
from .rpc import Rpc
|
|
15
15
|
|
|
16
|
+
E2EE_INFO_MSGS = 1
|
|
17
|
+
"""
|
|
18
|
+
The number of info messages added to new e2ee chats.
|
|
19
|
+
Currently this is "End-to-end encryption available".
|
|
20
|
+
"""
|
|
21
|
+
|
|
16
22
|
|
|
17
23
|
class ACFactory:
|
|
18
24
|
"""Test account factory."""
|
|
@@ -36,6 +36,9 @@ def test_one_account_send_bcc_setting(acfactory, log, direct_imap):
|
|
|
36
36
|
assert ac1.get_config("bcc_self") == "1"
|
|
37
37
|
|
|
38
38
|
# Second client receives only second message, but not the first.
|
|
39
|
+
ev_msg = ac1_clone.wait_for_event(EventType.MSGS_CHANGED)
|
|
40
|
+
assert ac1_clone.get_message_by_id(ev_msg.msg_id).get_snapshot().text == "Messages are end-to-end encrypted."
|
|
41
|
+
|
|
39
42
|
ev_msg = ac1_clone.wait_for_event(EventType.MSGS_CHANGED)
|
|
40
43
|
assert ac1_clone.get_message_by_id(ev_msg.msg_id).get_snapshot().text == msg_out.get_snapshot().text
|
|
41
44
|
|
|
@@ -12,6 +12,7 @@ import pytest
|
|
|
12
12
|
|
|
13
13
|
from deltachat_rpc_client import Contact, EventType, Message, events
|
|
14
14
|
from deltachat_rpc_client.const import ChatType, DownloadState, MessageState
|
|
15
|
+
from deltachat_rpc_client.pytestplugin import E2EE_INFO_MSGS
|
|
15
16
|
from deltachat_rpc_client.rpc import JsonRpcError
|
|
16
17
|
|
|
17
18
|
|
|
@@ -457,8 +458,12 @@ def test_wait_next_messages(acfactory) -> None:
|
|
|
457
458
|
alice_chat_bot.send_text("Hello!")
|
|
458
459
|
|
|
459
460
|
next_messages = next_messages_task.result()
|
|
460
|
-
|
|
461
|
-
|
|
461
|
+
|
|
462
|
+
if len(next_messages) == E2EE_INFO_MSGS:
|
|
463
|
+
next_messages += bot.wait_next_messages()
|
|
464
|
+
|
|
465
|
+
assert len(next_messages) == 1 + E2EE_INFO_MSGS
|
|
466
|
+
snapshot = next_messages[0 + E2EE_INFO_MSGS].get_snapshot()
|
|
462
467
|
assert snapshot.text == "Hello!"
|
|
463
468
|
|
|
464
469
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/__init__.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/_utils.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/account.py
RENAMED
|
File without changes
|
|
File without changes
|
{deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/client.py
RENAMED
|
File without changes
|
|
File without changes
|
{deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/contact.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/deltachat.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/events.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.1.0 → deltachat_rpc_client-2.3.0}/src/deltachat_rpc_client/message.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|