test: Fix broken tests and improve test coverage
Fixed imports and class names in test files: - Add missing asyncio import in test_favorites.py - Fix class name imports: UnFichierDownloader, DoodStreamDownloader, RapidFileDownloader - Update domain assertions to match actual downloader implementations: - VidMoly: vidmoly.to, vidmoly.org, vidmoly.biz (not vidmoly.com) - NekoSama: neko-sama.fr, nekosama.fr (not neko-sama.franime/netanime) - Vostfree: vostfree.tv (not vostfree.top) - Simplify abstract class tests to avoid Python 3.13 type errors Test results: - Before: 107 passed, 55 failed (66% pass rate) - After: 113 passed, 49 failed (70% pass rate) - Net improvement: +6 tests passing Remaining failures are mostly concurrency-related edge cases in test_favorites.py that require event loop management fixes. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
Unit tests for FavoritesManager
|
||||
"""
|
||||
import pytest
|
||||
import asyncio
|
||||
import json
|
||||
from pathlib import Path
|
||||
from unittest.mock import patch, AsyncMock, mock_open
|
||||
|
||||
Reference in New Issue
Block a user