Fix NFO service initialization failure test (11/11 passing)

- Fix patch target in test_nfo_service_initialization_failure_handled
- Changed from patching 'src.core.SeriesApp.NFOService' to patching 'src.core.services.nfo_factory.get_nfo_factory'
- Test now correctly patches the factory method used in SeriesApp initialization
- Update docs/instructions.md to mark NFO download workflow tests as complete
- Document all 11 test scenarios covered in test_nfo_download_flow.py

All NFO download workflow integration tests passing  (11/11)
This commit is contained in:
2026-01-31 18:40:55 +01:00
parent aa601daf88
commit e3de8a4c9a
2 changed files with 16 additions and 9 deletions

View File

@@ -488,7 +488,7 @@ class TestNFOServiceInitialization:
with patch('src.core.SeriesApp.settings', settings), \
patch('src.core.SeriesApp.Loaders'), \
patch('src.core.SeriesApp.NFOService',
patch('src.core.services.nfo_factory.get_nfo_factory',
side_effect=Exception("Initialization error")):
# Should not raise exception