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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neptune-sdk
3
- Version: 0.0.1.dev683
3
+ Version: 0.0.1.dev720
4
4
  Summary: Python SDK for Neptune BitTorrent client JSON-RPC API
5
5
  License-Expression: GPL-3.0-only
6
6
  Requires-Python: >=3.10
@@ -14,7 +14,7 @@ dependencies = [
14
14
  "httpx>=0.27",
15
15
  "pydantic>=2",
16
16
  ]
17
- version = "0.0.1.dev683"
17
+ version = "0.0.1.dev720"
18
18
 
19
19
  [dependency-groups]
20
20
  dev = [
@@ -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
- self, info_hash: str, *, delete_data: bool = False
216
- ) -> TorrentListResponse:
217
- """Remove a torrent and return updated list."""
218
- return _validate(
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({"torrents": []}))
196
- result = client.torrent_remove("aabb", delete_data=True)
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