test: fix tests
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user