Make retry handlers static methods

Convert handle_network_failure and handle_download_failure from instance methods to static methods. Hardcode retry params (max_retries, delays) instead of using instance state. Improves testability and removes implicit dependencies.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-04 22:29:59 +02:00
parent 2be7b692b9
commit 25dc66fec3
5 changed files with 26 additions and 14 deletions

View File

@@ -30,7 +30,7 @@ class TestTemplateHelpers:
assert context["request"] == request
assert context["title"] == "Test Title"
assert context["app_name"] == "Aniworld Download Manager"
assert context["version"] == "1.0.1"
assert context["version"] == "v1.3.6"
def test_get_base_context_default_title(self):
"""Test that default title is used."""