feat(schedule): implement multiple schedule providers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user