feat(schedule): implement multiple schedule providers

This commit is contained in:
2026-06-26 16:36:40 +03:00
parent 8b20eb1220
commit 29fe06462e
25 changed files with 1308 additions and 248 deletions

View File

@@ -3,7 +3,6 @@ import datetime
import pytest
from gallery.painting.matchtv.api import MatchTvApi
from gallery.sketch.schedule.model import ChannelId
from tests.data.matchtv import MATCHTV_MOCK_SOURCE
@@ -14,9 +13,12 @@ def matchtv_api_fixture() -> MatchTvApi:
return api
async def test_search(matchtv_api: MatchTvApi):
result = await matchtv_api.find_channels("матч")
assert len(result) == 6
async def test_channel(matchtv_api: MatchTvApi):
result = await matchtv_api.get_channel_schedule(
ChannelId.TEST, datetime.date.today()
)
result = await matchtv_api.get_channel_schedule("test", datetime.date.today())
assert result is not None
assert len(result.values) > 0