neptune-sdk 0.0.1.dev683__tar.gz → 0.0.1.dev720__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.
- {neptune_sdk-0.0.1.dev683 → neptune_sdk-0.0.1.dev720}/PKG-INFO +1 -1
- {neptune_sdk-0.0.1.dev683 → neptune_sdk-0.0.1.dev720}/pyproject.toml +1 -1
- {neptune_sdk-0.0.1.dev683 → neptune_sdk-0.0.1.dev720}/src/neptune_sdk/client.py +5 -10
- {neptune_sdk-0.0.1.dev683 → neptune_sdk-0.0.1.dev720}/tests/test_client.py +2 -3
- {neptune_sdk-0.0.1.dev683 → neptune_sdk-0.0.1.dev720}/src/neptune_sdk/__init__.py +0 -0
- {neptune_sdk-0.0.1.dev683 → neptune_sdk-0.0.1.dev720}/src/neptune_sdk/exceptions.py +0 -0
- {neptune_sdk-0.0.1.dev683 → neptune_sdk-0.0.1.dev720}/src/neptune_sdk/models.py +0 -0
- {neptune_sdk-0.0.1.dev683 → neptune_sdk-0.0.1.dev720}/tests/__init__.py +0 -0
|
@@ -211,16 +211,11 @@ class NeptuneClient:
|
|
|
211
211
|
MoveTorrentRequest(info_hash=info_hash, target_base_path=target_base_path),
|
|
212
212
|
)
|
|
213
213
|
|
|
214
|
-
def torrent_remove(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
TorrentListResponse,
|
|
220
|
-
self._call(
|
|
221
|
-
"torrent.remove",
|
|
222
|
-
RemoveTorrentRequest(info_hash=info_hash, delete_data=delete_data),
|
|
223
|
-
),
|
|
214
|
+
def torrent_remove(self, info_hash: str, *, delete_data: bool = False) -> None:
|
|
215
|
+
"""Remove a torrent."""
|
|
216
|
+
self._call(
|
|
217
|
+
"torrent.remove",
|
|
218
|
+
RemoveTorrentRequest(info_hash=info_hash, delete_data=delete_data),
|
|
224
219
|
)
|
|
225
220
|
|
|
226
221
|
def torrent_start(self, info_hash: str) -> None:
|
|
@@ -192,9 +192,8 @@ def test_torrent_add_encodes_base64(mock_api, client):
|
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
def test_torrent_remove(mock_api, client):
|
|
195
|
-
mock_api.post("/json_rpc").mock(return_value=_ok({
|
|
196
|
-
|
|
197
|
-
assert result.torrents == []
|
|
195
|
+
mock_api.post("/json_rpc").mock(return_value=_ok({}))
|
|
196
|
+
client.torrent_remove("aabb", delete_data=True)
|
|
198
197
|
|
|
199
198
|
payload = json.loads(mock_api.calls.last.request.content)
|
|
200
199
|
assert payload["params"]["delete_data"] is True
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|