deltachat-rpc-client 2.36.0__tar.gz → 2.37.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.36.0/src/deltachat_rpc_client.egg-info → deltachat_rpc_client-2.37.0}/PKG-INFO +1 -1
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/pyproject.toml +1 -1
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0/src/deltachat_rpc_client.egg-info}/PKG-INFO +1 -1
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_calls.py +45 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_securejoin.py +1 -1
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/LICENSE +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/README.md +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/setup.cfg +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/__init__.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/_utils.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/account.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/chat.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/client.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/const.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/contact.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/deltachat.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/events.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/message.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/py.typed +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/pytestplugin.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/rpc.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client.egg-info/SOURCES.txt +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client.egg-info/dependency_links.txt +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client.egg-info/entry_points.txt +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client.egg-info/top_level.txt +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_account_events.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_chatlist_events.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_cross_core.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_folders.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_iroh_webxdc.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_key_transfer.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_multidevice.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_multitransport.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_something.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_vcard.py +0 -0
- {deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/tests/test_webxdc.py +0 -0
|
@@ -107,3 +107,48 @@ def test_no_contact_request_call(acfactory) -> None:
|
|
|
107
107
|
msg = bob.get_message_by_id(event.msg_id)
|
|
108
108
|
if msg.get_snapshot().text == "Hello!":
|
|
109
109
|
break
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def test_who_can_call_me_nobody(acfactory) -> None:
|
|
113
|
+
alice, bob = acfactory.get_online_accounts(2)
|
|
114
|
+
|
|
115
|
+
# Bob sets "who can call me" to "nobody" (2)
|
|
116
|
+
bob.set_config("who_can_call_me", "2")
|
|
117
|
+
|
|
118
|
+
# Bob even accepts Alice in advance so the chat does not appear as contact request.
|
|
119
|
+
bob.create_chat(alice)
|
|
120
|
+
|
|
121
|
+
alice_chat_bob = alice.create_chat(bob)
|
|
122
|
+
alice_chat_bob.place_outgoing_call("offer")
|
|
123
|
+
alice_chat_bob.send_text("Hello!")
|
|
124
|
+
|
|
125
|
+
# Notification for "Hello!" message should arrive
|
|
126
|
+
# without the call ringing.
|
|
127
|
+
while True:
|
|
128
|
+
event = bob.wait_for_event()
|
|
129
|
+
|
|
130
|
+
# There should be no incoming call notification.
|
|
131
|
+
assert event.kind != EventType.INCOMING_CALL
|
|
132
|
+
|
|
133
|
+
if event.kind == EventType.INCOMING_MSG:
|
|
134
|
+
msg = bob.get_message_by_id(event.msg_id)
|
|
135
|
+
if msg.get_snapshot().text == "Hello!":
|
|
136
|
+
break
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def test_who_can_call_me_everybody(acfactory) -> None:
|
|
140
|
+
"""Test that if "who can call me" setting is set to "everybody", calls arrive even in contact request chats."""
|
|
141
|
+
alice, bob = acfactory.get_online_accounts(2)
|
|
142
|
+
|
|
143
|
+
# Bob sets "who can call me" to "nobody" (0)
|
|
144
|
+
bob.set_config("who_can_call_me", "0")
|
|
145
|
+
|
|
146
|
+
alice_chat_bob = alice.create_chat(bob)
|
|
147
|
+
alice_chat_bob.place_outgoing_call("offer")
|
|
148
|
+
incoming_call_event = bob.wait_for_event(EventType.INCOMING_CALL)
|
|
149
|
+
|
|
150
|
+
incoming_call_message = Message(bob, incoming_call_event.msg_id)
|
|
151
|
+
|
|
152
|
+
# Even with the call arriving, the chat is still in the contact request mode.
|
|
153
|
+
incoming_chat = incoming_call_message.get_snapshot().chat
|
|
154
|
+
assert incoming_chat.get_basic_snapshot().is_contact_request
|
|
@@ -696,6 +696,6 @@ def test_withdraw_securejoin_qr(acfactory):
|
|
|
696
696
|
event = alice.wait_for_event()
|
|
697
697
|
if (
|
|
698
698
|
event.kind == EventType.WARNING
|
|
699
|
-
and "Ignoring
|
|
699
|
+
and "Ignoring RequestWithAuth message because of invalid auth code." in event.msg
|
|
700
700
|
):
|
|
701
701
|
break
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/__init__.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/_utils.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/account.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/chat.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/client.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/const.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/contact.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/deltachat.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/events.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/message.py
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/py.typed
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.36.0 → deltachat_rpc_client-2.37.0}/src/deltachat_rpc_client/pytestplugin.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|