refactor: migrate main.py to modular routers and add project roadmap
CI / Test (Python 3.11) (push) Has been cancelled
CI / Test (Python 3.12) (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Type Check (push) Has been cancelled
CI / Summary (push) Has been cancelled

- Migrated monolithic main.py to feature-scoped routers in app/routers/
- Added GEMINI.md for project context and AI instructional guidelines
- Updated README.md with a comprehensive modernization plan (SQL migration, robust scraping DSL, frontend modernization)
- Improved authentication with cookie support and modular JS
- Updated test suite and documentation
This commit is contained in:
root
2026-03-24 10:12:04 +00:00
parent 1b5d7f9238
commit d4d8d8a3b6
42 changed files with 4518 additions and 2426 deletions
+5 -3
View File
@@ -108,13 +108,15 @@ class TestAnimeSamaFallback:
with patch.object(downloader, '_extract_from_vidmoly') as mock_vidmoly, \
patch.object(downloader, '_extract_from_sendvid') as mock_sendvid, \
patch.object(downloader, '_extract_from_sibnet') as mock_sibnet, \
patch.object(downloader, '_extract_from_lpayer') as mock_lpayer:
patch.object(downloader, '_extract_from_lpayer_api') as mock_lpayer_api, \
patch.object(downloader, '_extract_from_smoothpre') as mock_smoothpre:
# All players fail
mock_vidmoly.side_effect = Exception("VidMoly error")
mock_sendvid.side_effect = Exception("SendVid error")
mock_sibnet.side_effect = Exception("Sibnet error")
mock_lpayer.side_effect = Exception("Lpayer error")
mock_lpayer_api.side_effect = Exception("Lpayer error")
mock_smoothpre.side_effect = Exception("Smoothpre error")
anime_url = "https://anime-sama.si/catalogue/test/vostfr/"
@@ -131,7 +133,7 @@ class TestAnimeSamaFallback:
assert mock_vidmoly.called
assert mock_sendvid.called
assert mock_sibnet.called
assert mock_lpayer.called
assert mock_lpayer_api.called
@pytest.mark.asyncio
async def test_test_video_url_returns_true_for_valid_url(self, downloader):