chore: apply pre-commit auto-fixes (trim trailing whitespace, EOF)
This commit is contained in:
@@ -49,8 +49,11 @@ def identifier(kb):
|
||||
return SubtitleIdentifier(kb)
|
||||
|
||||
|
||||
def _pattern(strategy: ScanStrategy, root_folder: str | None = None,
|
||||
detection: TypeDetectionMethod = TypeDetectionMethod.TOKEN_IN_NAME) -> SubtitlePattern:
|
||||
def _pattern(
|
||||
strategy: ScanStrategy,
|
||||
root_folder: str | None = None,
|
||||
detection: TypeDetectionMethod = TypeDetectionMethod.TOKEN_IN_NAME,
|
||||
) -> SubtitlePattern:
|
||||
return SubtitlePattern(
|
||||
id=f"test-{strategy.value}",
|
||||
description="",
|
||||
@@ -70,9 +73,7 @@ class TestTokenize:
|
||||
assert _tokenize("Show.S01E01.French") == ["show", "s01e01", "french"]
|
||||
|
||||
def test_mixed_separators(self):
|
||||
assert _tokenize("Show_S01-E01 French") == [
|
||||
"show", "s01", "e01", "french"
|
||||
]
|
||||
assert _tokenize("Show_S01-E01 French") == ["show", "s01", "e01", "french"]
|
||||
|
||||
def test_strips_parenthesized(self):
|
||||
assert _tokenize("episode (Brazil).French") == ["episode", "french"]
|
||||
|
||||
Reference in New Issue
Block a user