Fix integration test failures
- Fix test_data_file_db_sync.py: Remove unused mock logger parameters - Fix test_nfo_workflow.py: Add missing async mocks for TMDB methods * Add get_tv_show_content_ratings mock for FSK rating support * Add get_image_url mock to return proper URL strings * Fix test_nfo_update_workflow to include TMDB ID in existing NFO - Fix DownloadService method calls in test fixtures * Change stop() to stop_downloads() (correct method name) * Change start() to start_queue_processing() * Add exception handling for ProgressServiceError in teardown - All 1380 tests now passing with 0 failures and 0 errors
This commit is contained in:
@@ -85,7 +85,7 @@ async def download_service(anime_service, progress_service, tmp_path):
|
||||
queue_repository=mock_repo,
|
||||
)
|
||||
yield service, progress_service
|
||||
await service.stop()
|
||||
await service.stop_downloads()
|
||||
|
||||
|
||||
class TestWebSocketDownloadIntegration:
|
||||
@@ -483,11 +483,11 @@ class TestWebSocketEndToEnd:
|
||||
)
|
||||
|
||||
# Start queue
|
||||
await download_svc.start()
|
||||
await download_svc.start_queue_processing()
|
||||
await asyncio.sleep(0.1)
|
||||
|
||||
# Stop queue
|
||||
await download_svc.stop()
|
||||
await download_svc.stop_downloads()
|
||||
|
||||
# Verify we received events
|
||||
assert len(all_broadcasts) >= 1
|
||||
|
||||
Reference in New Issue
Block a user