Fix: Scanner availability for series addition

- Change 'scanner' to 'serie_scanner' attribute name
- Update tests to match SeriesApp attribute naming
- Scanner now properly detected and called on add
- All add_series tests passing (9/9)
This commit is contained in:
2026-01-11 17:48:37 +01:00
parent 5c0a019e72
commit 281b982abe
3 changed files with 31 additions and 40 deletions

View File

@@ -42,7 +42,7 @@ class FakeSeriesApp:
def __init__(self):
"""Initialize fake series app."""
self.list = self # Changed from self.List to self.list
self.scanner = FakeScanner() # Add fake scanner
self.serie_scanner = FakeScanner() # Add fake scanner (matches SeriesApp attribute name)
self.directory = "/tmp/fake_anime"
self.keyDict = {} # Add keyDict for direct access
self._items = [