fix(patreon): declare aiohttp/yarl deps and use public yarl.URL import

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-18 13:40:20 -04:00
parent ce8ba538b7
commit 3642acc41c
3 changed files with 8 additions and 3 deletions
@@ -1,6 +1,7 @@
"""Unit tests for the Patreon campaign-ID resolver."""
import asyncio
import aiohttp
import pytest
from aioresponses import aioresponses
from app.services.patreon_resolver import resolve_campaign_id
@@ -55,7 +56,6 @@ async def test_network_error_returns_none():
async def test_timeout_returns_none():
import asyncio
with aioresponses() as mock:
mock.get(CAMPAIGNS_URL, exception=asyncio.TimeoutError())
result = await resolve_campaign_id("mstsu", cookies_path=None)