chore: apply pre-commit auto-fixes (trim trailing whitespace, EOF)
This commit is contained in:
@@ -79,9 +79,7 @@ def client():
|
||||
|
||||
class TestInit:
|
||||
def test_explicit_args(self):
|
||||
c = QBittorrentClient(
|
||||
host="http://x:1", username="u", password="p", timeout=99
|
||||
)
|
||||
c = QBittorrentClient(host="http://x:1", username="u", password="p", timeout=99)
|
||||
assert c.host == "http://x:1"
|
||||
assert c.username == "u"
|
||||
assert c.password == "p"
|
||||
@@ -265,9 +263,7 @@ class TestMutations:
|
||||
def test_delete_no_files_default(self, client):
|
||||
self._ok(client)
|
||||
client.delete_torrent("hash1")
|
||||
assert (
|
||||
client.session.post.call_args.kwargs["data"]["deleteFiles"] == "false"
|
||||
)
|
||||
assert client.session.post.call_args.kwargs["data"]["deleteFiles"] == "false"
|
||||
|
||||
def test_pause(self, client):
|
||||
self._ok(client)
|
||||
@@ -328,9 +324,7 @@ class TestFindByName:
|
||||
|
||||
def test_case_insensitive_match(self, client):
|
||||
client._authenticated = True
|
||||
client.session.get.return_value = _resp(
|
||||
[_torrent_dict("foundation.s01")]
|
||||
)
|
||||
client.session.get.return_value = _resp([_torrent_dict("foundation.s01")])
|
||||
result = client.find_by_name("Foundation.S01")
|
||||
assert result is not None
|
||||
assert result.name == "foundation.s01"
|
||||
|
||||
Reference in New Issue
Block a user