import json from pathlib import Path from gismeteo.api import WeatherResponse class MockData: @property def html(self) -> str: return (Path(__file__).parent / "data/weather.html").read_text() @property def response(self) -> WeatherResponse: data = json.loads((Path(__file__).parent / "data/weather.json").read_text()) return WeatherResponse(**data) MOCK_DATA = MockData()