Fix test issues

This commit is contained in:
Urtzi Alfaro
2025-07-19 12:51:28 +02:00
parent 72a7c0a0a6
commit 42097202d2
5 changed files with 259 additions and 72 deletions

View File

@@ -12,7 +12,7 @@ import structlog
from app.core.database import get_db
from app.core.auth import get_current_user, AuthInfo
from app.services.weather_service import WeatherService
from app.services.messaging import data_publisher
from app.services.messaging import publish_weather_updated
from app.schemas.external import (
WeatherDataResponse,
WeatherForecastResponse,
@@ -71,7 +71,7 @@ async def get_weather_forecast(
# Publish event (with error handling)
try:
await data_publisher.publish_weather_updated({
await publish_weather_updated({
"type": "forecast_requested",
"latitude": latitude,
"longitude": longitude,
@@ -118,7 +118,7 @@ async def get_historical_weather(
# Publish event (with error handling)
try:
await data_publisher.publish_weather_updated({
await publish_weather_updated({
"type": "historical_requested",
"latitude": latitude,
"longitude": longitude,