From b8db7c1ca34a1fe9174d4727574d2fb8efd61ff1 Mon Sep 17 00:00:00 2001 From: Jakub Buzuk <61548378+Baz00k@users.noreply.github.com> Date: Wed, 15 Oct 2025 13:06:18 +0200 Subject: [PATCH] fix: failing tests after client job base class update --- tests/jobs/test_remove_completed.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/jobs/test_remove_completed.py b/tests/jobs/test_remove_completed.py index bada544..62c10f6 100644 --- a/tests/jobs/test_remove_completed.py +++ b/tests/jobs/test_remove_completed.py @@ -175,7 +175,7 @@ async def test_remove_completed_test_run_enabled(): with patch.object( job, - "_remove_qbittorrent_item", + "_remove_items", new_callable=AsyncMock, ) as mock_remove: result = await job.run() @@ -200,6 +200,7 @@ async def test_remove_completed_with_protected_item(protected_on): item_properties["tags"] += ",tag1" else: item_properties["category"] = "protected" + target_categories = ["protected"] item = {**ITEM_DEFAULTS, **item_properties} @@ -212,7 +213,7 @@ async def test_remove_completed_with_protected_item(protected_on): with patch.object( job, - "_remove_qbittorrent_item", + "_remove_items", new_callable=AsyncMock, ) as mock_remove: result = await job.run()