def mock_gsod_weather_source(): tmp_url = "sqlite:///{}/weather_cache.db".format(tempfile.mkdtemp()) ws = GSODWeatherSource("722880", tmp_url) ws.client = MockWeatherClient() return ws
def mock_gsod_weather_source(): tmp_dir = tempfile.mkdtemp() ws = GSODWeatherSource("722880", tmp_dir) ws.client = MockWeatherClient() return ws