deltachat-rpc-client 2.27.0__py3-none-any.whl → 2.28.0__py3-none-any.whl
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/account.py +4 -0
- deltachat_rpc_client/pytestplugin.py +8 -2
- {deltachat_rpc_client-2.27.0.dist-info → deltachat_rpc_client-2.28.0.dist-info}/METADATA +1 -1
- {deltachat_rpc_client-2.27.0.dist-info → deltachat_rpc_client-2.28.0.dist-info}/RECORD +8 -8
- {deltachat_rpc_client-2.27.0.dist-info → deltachat_rpc_client-2.28.0.dist-info}/WHEEL +0 -0
- {deltachat_rpc_client-2.27.0.dist-info → deltachat_rpc_client-2.28.0.dist-info}/entry_points.txt +0 -0
- {deltachat_rpc_client-2.27.0.dist-info → deltachat_rpc_client-2.28.0.dist-info}/licenses/LICENSE +0 -0
- {deltachat_rpc_client-2.27.0.dist-info → deltachat_rpc_client-2.28.0.dist-info}/top_level.txt +0 -0
deltachat_rpc_client/account.py
CHANGED
|
@@ -130,6 +130,10 @@ class Account:
|
|
|
130
130
|
"""Add a new transport using a QR code."""
|
|
131
131
|
yield self._rpc.add_transport_from_qr.future(self.id, qr)
|
|
132
132
|
|
|
133
|
+
def delete_transport(self, addr: str):
|
|
134
|
+
"""Delete a transport."""
|
|
135
|
+
self._rpc.delete_transport(self.id, addr)
|
|
136
|
+
|
|
133
137
|
@futuremethod
|
|
134
138
|
def list_transports(self):
|
|
135
139
|
"""Return the list of all email accounts that are used as a transport in the current profile."""
|
|
@@ -40,12 +40,17 @@ class ACFactory:
|
|
|
40
40
|
username = "ci-" + "".join(random.choice("2345789acdefghjkmnpqrstuvwxyz") for i in range(6))
|
|
41
41
|
return f"{username}@{domain}", f"{username}${username}"
|
|
42
42
|
|
|
43
|
+
def get_account_qr(self):
|
|
44
|
+
"""Return "dcaccount:" QR code for testing chatmail relay."""
|
|
45
|
+
domain = os.getenv("CHATMAIL_DOMAIN")
|
|
46
|
+
return f"dcaccount:{domain}"
|
|
47
|
+
|
|
43
48
|
@futuremethod
|
|
44
49
|
def new_configured_account(self):
|
|
45
50
|
"""Create a new configured account."""
|
|
46
51
|
account = self.get_unconfigured_account()
|
|
47
|
-
|
|
48
|
-
yield account.add_transport_from_qr.future(
|
|
52
|
+
qr = self.get_account_qr()
|
|
53
|
+
yield account.add_transport_from_qr.future(qr)
|
|
49
54
|
|
|
50
55
|
assert account.is_configured()
|
|
51
56
|
return account
|
|
@@ -77,6 +82,7 @@ class ACFactory:
|
|
|
77
82
|
ac_clone = self.get_unconfigured_account()
|
|
78
83
|
for transport in transports:
|
|
79
84
|
ac_clone.add_or_update_transport(transport)
|
|
85
|
+
ac_clone.bring_online()
|
|
80
86
|
return ac_clone
|
|
81
87
|
|
|
82
88
|
def get_accepted_chat(self, ac1: Account, ac2: Account) -> Chat:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
deltachat_rpc_client/__init__.py,sha256=zroJARiq9HBi7Ln03KlICOUJHSjm3CGIFkHfXILEdOQ,567
|
|
2
2
|
deltachat_rpc_client/_utils.py,sha256=v0iWVSa6S-s078GgnnhflCRhA9pfWI-CfK8mjZ4zjXc,6393
|
|
3
|
-
deltachat_rpc_client/account.py,sha256=
|
|
3
|
+
deltachat_rpc_client/account.py,sha256=CNUwmWNdWlaEXuDHy0Xld7EFnNaBrMk_BORkVeNIql4,19549
|
|
4
4
|
deltachat_rpc_client/chat.py,sha256=x5CEIORL1-731QC4KcXd_0JKtRpe7nT9oAygmKkooHI,11707
|
|
5
5
|
deltachat_rpc_client/client.py,sha256=6eP_lH5z7G5Sy7vDRNfKNY3dkUqJqKZDVyCGjynsuW8,7181
|
|
6
6
|
deltachat_rpc_client/const.py,sha256=p6hSXNYLBpPLpMz0UkT8QnMrqmA_cZ3sw-o8S3ryVM4,6675
|
|
@@ -9,11 +9,11 @@ deltachat_rpc_client/deltachat.py,sha256=-6SqQAS8_mMWLBP3U1HvFsNIpcAPYBlmqF8R6Bt
|
|
|
9
9
|
deltachat_rpc_client/events.py,sha256=Y45LoGlQy0i1U-LhoqF9njqJWA8v4b-XHfXZ4VOr1TQ,10205
|
|
10
10
|
deltachat_rpc_client/message.py,sha256=PWSm5e-woWgYXPcnwygQO0fNSRV-NvKvuerqWkJxiik,4996
|
|
11
11
|
deltachat_rpc_client/py.typed,sha256=nGQ9Itq-bkXBn5Ri1JIR0oYnDNv7LDRfkowxBSSqVTM,60
|
|
12
|
-
deltachat_rpc_client/pytestplugin.py,sha256=
|
|
12
|
+
deltachat_rpc_client/pytestplugin.py,sha256=aoueJt7pXJUQsSBRRyVHLU-geSC9LUOJ7qlvJbWTB4A,5899
|
|
13
13
|
deltachat_rpc_client/rpc.py,sha256=AUY8UJP7NlRSE5ewJs9jGxJdK8etKqsCEFWiIqnX5T8,6981
|
|
14
|
-
deltachat_rpc_client-2.
|
|
15
|
-
deltachat_rpc_client-2.
|
|
16
|
-
deltachat_rpc_client-2.
|
|
17
|
-
deltachat_rpc_client-2.
|
|
18
|
-
deltachat_rpc_client-2.
|
|
19
|
-
deltachat_rpc_client-2.
|
|
14
|
+
deltachat_rpc_client-2.28.0.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
|
|
15
|
+
deltachat_rpc_client-2.28.0.dist-info/METADATA,sha256=ClJk90k_SAgeIo42XgVpCsctIIQHyC4QVnZUuuSY7HI,2225
|
|
16
|
+
deltachat_rpc_client-2.28.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
deltachat_rpc_client-2.28.0.dist-info/entry_points.txt,sha256=VHpX6EnKBaNj89qJWctApThnMa8suyaamfZEnQacXgc,81
|
|
18
|
+
deltachat_rpc_client-2.28.0.dist-info/top_level.txt,sha256=ePNMkY10htGrLiLydH1ITvYFM3LcTEa51HyPqJ40hDk,21
|
|
19
|
+
deltachat_rpc_client-2.28.0.dist-info/RECORD,,
|
|
File without changes
|
{deltachat_rpc_client-2.27.0.dist-info → deltachat_rpc_client-2.28.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.27.0.dist-info → deltachat_rpc_client-2.28.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.27.0.dist-info → deltachat_rpc_client-2.28.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|