19 lines
395 B
Python
19 lines
395 B
Python
from pathlib import Path
|
|
|
|
from gallery.painting.openweather.openweather import OpenWeather
|
|
from tests.common.mock import MockSource
|
|
|
|
|
|
class OpenWeatherMockSource(MockSource, OpenWeather):
|
|
pass
|
|
|
|
|
|
OPENWEATHER_MOCK_SOURCE = OpenWeatherMockSource(
|
|
Path(__file__).parent,
|
|
{
|
|
"forecast": "forecast.json",
|
|
"direct": "direct.json",
|
|
"reverse": "reverse.json",
|
|
},
|
|
)
|