Backend test hardening + quality enforcement (#872)

- Reworked many tests
- Enforcing lint + type checking for test suite
- Fixed various issues surfaced by the new tests
- CI tweaks
This commit is contained in:
Alex
2026-04-12 12:01:52 +01:00
committed by GitHub
parent 41c4aa1d72
commit d7b9f2e67f
100 changed files with 8607 additions and 6347 deletions
+3 -5
View File
@@ -4,17 +4,15 @@ Tests for the Prowlarr source module.
Tests the utility functions for parsing release metadata.
"""
import pytest
# Import the functions to test
from shelfmark.metadata_providers import BookMetadata
from shelfmark.release_sources.prowlarr.source import (
ProwlarrSource,
_parse_size,
_extract_format,
_detect_content_type_from_categories,
_extract_format,
_parse_size,
)
from shelfmark.release_sources.prowlarr.utils import get_protocol_display, sanitize_download_url
from shelfmark.metadata_providers import BookMetadata
class TestParseSize: