test(openweather): add openweather location seacrh test

This commit is contained in:
2026-06-26 16:27:36 +03:00
parent 5333690c47
commit 8b20eb1220
3 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,11 @@ def openweather_api_fixture() -> OpenWeatherApi:
return api
async def test_search(openweather_api: OpenWeatherApi):
result = await openweather_api.find_locations("test")
assert len(result) == 5
async def test_day(openweather_api: OpenWeatherApi):
result = await openweather_api.get_day("52.968498:36.0695", datetime.date(2024, 8, 23))
assert len(result.values) == 8