fix: 초단기예보 강수형태 5 빗방울·6 빗방울눈날림·7 눈날림을 몰라 KeyError 로 피드가 500 — 비·진눈깨비·눈으로 읽음, 테스트가 실제 초단기예보를 부르던 것 막음
This commit is contained in:
1 parent
d020d27715
commit
4daad2ecc5
3 files changed
+15
-1
No files matched your search
@@ -4,6 +4,7 @@ from types import SimpleNamespace
|
||||
import pytest
|
||||
from httpx import ASGITransport, AsyncClient
|
||||
|
||||
import services.now_service as now_service
|
||||
import services.air_service as air_service
|
||||
import services.warning_service as warning_service
|
||||
import services.weather_service as weather_service
|
||||
@@ -51,6 +52,7 @@ def fakes(monkeypatch):
|
||||
}]))
|
||||
monkeypatch.setattr(warning_service, "fetch_warning_events", lambda *a: _async([]))
|
||||
monkeypatch.setattr(weather_service, "fetch_mid", lambda *a: _async(_mid()))
|
||||
monkeypatch.setattr(now_service, "fetch_ultra", lambda *a: _async([]))
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
|
||||
Reference in new issue
Block a user