From e934e50461a6b4396e1145622dc78def2017e005 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 14 Jan 2026 16:40:58 +0000 Subject: [PATCH] Address code review feedback: improve test parameter handling Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com> --- python_pkg/download_cats/tests/test_http_status_anki.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_pkg/download_cats/tests/test_http_status_anki.py b/python_pkg/download_cats/tests/test_http_status_anki.py index 620d8f2..a16f416 100644 --- a/python_pkg/download_cats/tests/test_http_status_anki.py +++ b/python_pkg/download_cats/tests/test_http_status_anki.py @@ -208,7 +208,8 @@ class TestGenerateAnkiPackage: """Test that download errors are handled gracefully.""" test_codes = {200: "OK", 404: "Not Found"} - def mock_download(code: int, *, use_cache: bool) -> bytes: # noqa: ARG001 + def mock_download(code: int, *, use_cache: bool) -> bytes: + del use_cache # Intentionally unused in test mock error_msg = "Failed" if code == 404: raise requests.exceptions.RequestException(error_msg)