refactor(release): rename ParsedRelease.normalised → clean
Le champ s'appelait normalised mais ne faisait pas la normalisation suggérée par son nom (dots instead of spaces). En pratique il contient raw - site_tag - apostrophes, qui sert uniquement à season_folder_name() via _strip_episode_from_normalized. Renommé en 'clean' qui décrit ce qu'il contient réellement, docstring corrigée.
This commit is contained in:
@@ -67,7 +67,7 @@ def _movie(year: int = 2020, **overrides) -> ParsedRelease:
|
||||
"""Build a populated movie ParsedRelease for scoring tests."""
|
||||
base = dict(
|
||||
raw="Inception.2010.1080p.BluRay.x264-GROUP",
|
||||
normalised="Inception.2010.1080p.BluRay.x264-GROUP",
|
||||
clean="Inception.2010.1080p.BluRay.x264-GROUP",
|
||||
title="Inception",
|
||||
title_sanitized="Inception",
|
||||
year=year,
|
||||
@@ -109,7 +109,7 @@ class TestComputeScore:
|
||||
def test_tv_show_gets_season_and_episode_weight(self) -> None:
|
||||
parsed = ParsedRelease(
|
||||
raw="Oz.S01E01.1080p.WEBRip.x265-KONTRAST",
|
||||
normalised="Oz.S01E01.1080p.WEBRip.x265-KONTRAST",
|
||||
clean="Oz.S01E01.1080p.WEBRip.x265-KONTRAST",
|
||||
title="Oz",
|
||||
title_sanitized="Oz",
|
||||
year=None,
|
||||
@@ -220,7 +220,7 @@ class TestCollectors:
|
||||
def test_collect_missing_critical_full(self) -> None:
|
||||
empty = ParsedRelease(
|
||||
raw="x",
|
||||
normalised="x",
|
||||
clean="x",
|
||||
title="",
|
||||
title_sanitized="",
|
||||
year=None,
|
||||
|
||||
Reference in New Issue
Block a user