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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user