deltachat-rpc-client 2.24.0__tar.gz → 2.25.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 (33) hide show
  1. {deltachat_rpc_client-2.24.0/src/deltachat_rpc_client.egg-info → deltachat_rpc_client-2.25.0}/PKG-INFO +1 -1
  2. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/pyproject.toml +1 -1
  3. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0/src/deltachat_rpc_client.egg-info}/PKG-INFO +1 -1
  4. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/tests/test_securejoin.py +4 -4
  5. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/tests/test_something.py +11 -28
  6. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/LICENSE +0 -0
  7. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/README.md +0 -0
  8. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/setup.cfg +0 -0
  9. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/__init__.py +0 -0
  10. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/_utils.py +0 -0
  11. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/account.py +0 -0
  12. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/chat.py +0 -0
  13. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/client.py +0 -0
  14. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/const.py +0 -0
  15. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/contact.py +0 -0
  16. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/deltachat.py +0 -0
  17. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/events.py +0 -0
  18. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/message.py +0 -0
  19. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/py.typed +0 -0
  20. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/pytestplugin.py +0 -0
  21. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client/rpc.py +0 -0
  22. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client.egg-info/SOURCES.txt +0 -0
  23. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client.egg-info/dependency_links.txt +0 -0
  24. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client.egg-info/entry_points.txt +0 -0
  25. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/src/deltachat_rpc_client.egg-info/top_level.txt +0 -0
  26. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/tests/test_account_events.py +0 -0
  27. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/tests/test_calls.py +0 -0
  28. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/tests/test_chatlist_events.py +0 -0
  29. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/tests/test_iroh_webxdc.py +0 -0
  30. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/tests/test_key_transfer.py +0 -0
  31. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/tests/test_multidevice.py +0 -0
  32. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.0}/tests/test_vcard.py +0 -0
  33. {deltachat_rpc_client-2.24.0 → deltachat_rpc_client-2.25.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.24.0
3
+ Version: 2.25.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.24.0"
7
+ version = "2.25.0"
8
8
  description = "Python client for Delta Chat core JSON-RPC interface"
9
9
  classifiers = [
10
10
  "Development Status :: 5 - Production/Stable",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deltachat-rpc-client
3
- Version: 2.24.0
3
+ Version: 2.25.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
@@ -122,7 +122,7 @@ def test_qr_securejoin_broadcast(acfactory, all_devices_online):
122
122
  bob2.start_io()
123
123
 
124
124
  logging.info("===================== Alice creates a broadcast =====================")
125
- alice_chat = alice.create_broadcast("Broadcast channel for everyone!")
125
+ alice_chat = alice.create_broadcast("Broadcast channel!")
126
126
  snapshot = alice_chat.get_basic_snapshot()
127
127
  assert not snapshot.is_unpromoted # Broadcast channels are never unpromoted
128
128
 
@@ -135,8 +135,8 @@ def test_qr_securejoin_broadcast(acfactory, all_devices_online):
135
135
  alice_chat.send_text("Hello everyone!")
136
136
 
137
137
  def get_broadcast(ac):
138
- chat = ac.get_chatlist(query="Broadcast channel for everyone!")[0]
139
- assert chat.get_basic_snapshot().name == "Broadcast channel for everyone!"
138
+ chat = ac.get_chatlist(query="Broadcast channel!")[0]
139
+ assert chat.get_basic_snapshot().name == "Broadcast channel!"
140
140
  return chat
141
141
 
142
142
  def wait_for_broadcast_messages(ac):
@@ -184,7 +184,7 @@ def test_qr_securejoin_broadcast(acfactory, all_devices_online):
184
184
 
185
185
  chat_snapshot = chat.get_full_snapshot()
186
186
  assert chat_snapshot.is_encrypted
187
- assert chat_snapshot.name == "Broadcast channel for everyone!"
187
+ assert chat_snapshot.name == "Broadcast channel!"
188
188
  if inviter_side:
189
189
  assert chat_snapshot.chat_type == ChatType.OUT_BROADCAST
190
190
  else:
@@ -338,44 +338,27 @@ def test_receive_imf_failure(acfactory) -> None:
338
338
 
339
339
  bob.set_config("fail_on_receiving_full_msg", "1")
340
340
  alice_chat_bob.send_text("Hello!")
341
- event = bob.wait_for_incoming_msg_event()
342
- chat_id = event.chat_id
341
+ event = bob.wait_for_event(EventType.MSGS_CHANGED)
342
+ assert event.chat_id == bob.get_device_chat().id
343
343
  msg_id = event.msg_id
344
344
  message = bob.get_message_by_id(msg_id)
345
345
  snapshot = message.get_snapshot()
346
- assert snapshot.chat_id == chat_id
347
- assert snapshot.download_state == DownloadState.AVAILABLE
348
- assert snapshot.error is not None
349
- assert snapshot.show_padlock
350
- snapshot.chat.accept()
346
+ assert (
347
+ snapshot.text == "❌ Failed to receive a message:"
348
+ " Condition failed: `!context.get_config_bool(Config::FailOnReceivingFullMsg).await?`."
349
+ " Please report this bug to delta@merlinux.eu or https://support.delta.chat/."
350
+ )
351
351
 
352
352
  # The failed message doesn't break the IMAP loop.
353
353
  bob.set_config("fail_on_receiving_full_msg", "0")
354
354
  alice_chat_bob.send_text("Hello again!")
355
355
  event = bob.wait_for_incoming_msg_event()
356
- assert event.chat_id == chat_id
357
- msg_id = event.msg_id
358
- message1 = bob.get_message_by_id(msg_id)
359
- snapshot = message1.get_snapshot()
360
- assert snapshot.chat_id == chat_id
361
- assert snapshot.download_state == DownloadState.DONE
362
- assert snapshot.error is None
363
-
364
- # The failed message can be re-downloaded later.
365
- bob._rpc.download_full_message(bob.id, message.id)
366
- event = bob.wait_for_event(EventType.MSGS_CHANGED)
367
- message = bob.get_message_by_id(event.msg_id)
368
- snapshot = message.get_snapshot()
369
- assert snapshot.download_state == DownloadState.IN_PROGRESS
370
- event = bob.wait_for_event(EventType.MSGS_CHANGED)
371
- assert event.chat_id == chat_id
372
356
  msg_id = event.msg_id
373
357
  message = bob.get_message_by_id(msg_id)
374
358
  snapshot = message.get_snapshot()
375
- assert snapshot.chat_id == chat_id
359
+ assert snapshot.text == "Hello again!"
376
360
  assert snapshot.download_state == DownloadState.DONE
377
361
  assert snapshot.error is None
378
- assert snapshot.text == "Hello!"
379
362
 
380
363
 
381
364
  def test_selfavatar_sync(acfactory, data, log) -> None:
@@ -940,7 +923,7 @@ def test_leave_broadcast(acfactory, all_devices_online):
940
923
  bob2.start_io()
941
924
 
942
925
  logging.info("===================== Alice creates a broadcast =====================")
943
- alice_chat = alice.create_broadcast("Broadcast channel for everyone!")
926
+ alice_chat = alice.create_broadcast("Broadcast channel!")
944
927
 
945
928
  logging.info("===================== Bob joins the broadcast =====================")
946
929
  qr_code = alice_chat.get_qr_code()
@@ -957,8 +940,8 @@ def test_leave_broadcast(acfactory, all_devices_online):
957
940
  assert member_added_msg.get_snapshot().text == "You joined the channel."
958
941
 
959
942
  def get_broadcast(ac):
960
- chat = ac.get_chatlist(query="Broadcast channel for everyone!")[0]
961
- assert chat.get_basic_snapshot().name == "Broadcast channel for everyone!"
943
+ chat = ac.get_chatlist(query="Broadcast channel!")[0]
944
+ assert chat.get_basic_snapshot().name == "Broadcast channel!"
962
945
  return chat
963
946
 
964
947
  def check_account(ac, contact, inviter_side, please_wait_info_msg=False):