test: fix tests

This commit is contained in:
2026-04-14 22:40:10 +03:00
parent 6112147b40
commit a886322d0e
9 changed files with 10920 additions and 9479 deletions

View File

@@ -10,7 +10,7 @@ from gallery.painting.matchtv.mock import MATCHTV_MOCK_DATA
def matchtv_api_fixture() -> MatchTvApi:
class MockSource:
async def request(self, endpoint: str):
return MATCHTV_MOCK_DATA.get_html(endpoint.split("/")[1])
return MATCHTV_MOCK_DATA.get_html(endpoint.split("/")[1].split("?")[0])
api = MatchTvApi()
api.SOURCE = MockSource()