deltachat-rpc-client 2.2.0__tar.gz → 2.4.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.
Files changed (32) hide show
  1. {deltachat_rpc_client-2.2.0/src/deltachat_rpc_client.egg-info → deltachat_rpc_client-2.4.0}/PKG-INFO +1 -1
  2. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/pyproject.toml +1 -1
  3. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/pytestplugin.py +6 -0
  4. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0/src/deltachat_rpc_client.egg-info}/PKG-INFO +1 -1
  5. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/tests/test_multidevice.py +3 -0
  6. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/tests/test_something.py +7 -2
  7. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/LICENSE +0 -0
  8. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/README.md +0 -0
  9. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/setup.cfg +0 -0
  10. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/__init__.py +0 -0
  11. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/_utils.py +0 -0
  12. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/account.py +0 -0
  13. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/chat.py +0 -0
  14. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/client.py +0 -0
  15. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/const.py +0 -0
  16. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/contact.py +0 -0
  17. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/deltachat.py +0 -0
  18. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/events.py +0 -0
  19. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/message.py +0 -0
  20. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/py.typed +0 -0
  21. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client/rpc.py +0 -0
  22. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client.egg-info/SOURCES.txt +0 -0
  23. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client.egg-info/dependency_links.txt +0 -0
  24. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client.egg-info/entry_points.txt +0 -0
  25. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/src/deltachat_rpc_client.egg-info/top_level.txt +0 -0
  26. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/tests/test_account_events.py +0 -0
  27. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/tests/test_chatlist_events.py +0 -0
  28. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/tests/test_iroh_webxdc.py +0 -0
  29. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/tests/test_key_transfer.py +0 -0
  30. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/tests/test_securejoin.py +0 -0
  31. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/tests/test_vcard.py +0 -0
  32. {deltachat_rpc_client-2.2.0 → deltachat_rpc_client-2.4.0}/tests/test_webxdc.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deltachat-rpc-client
3
- Version: 2.2.0
3
+ Version: 2.4.0
4
4
  Summary: Python client for Delta Chat core JSON-RPC interface
5
5
  Classifier: Development Status :: 5 - Production/Stable
6
6
  Classifier: Intended Audience :: Developers
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "deltachat-rpc-client"
7
- version = "2.2.0"
7
+ version = "2.4.0"
8
8
  description = "Python client for Delta Chat core JSON-RPC interface"
9
9
  classifiers = [
10
10
  "Development Status :: 5 - Production/Stable",
@@ -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."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deltachat-rpc-client
3
- Version: 2.2.0
3
+ Version: 2.4.0
4
4
  Summary: Python client for Delta Chat core JSON-RPC interface
5
5
  Classifier: Development Status :: 5 - Production/Stable
6
6
  Classifier: Intended Audience :: Developers
@@ -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
- assert len(next_messages) == 1
461
- snapshot = next_messages[0].get_snapshot()
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