implement openweather

This commit is contained in:
2025-12-04 18:37:46 +09:00
parent c59834e92b
commit b4e423c1bf
6 changed files with 1615 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package openweather_test
import (
_ "embed"
"encoding/json"
"testing"
"github.com/neatflowcv/seven-skies/internal/pkg/openweather"
"github.com/stretchr/testify/require"
)
//go:embed testdata/forecast.json
var forecast []byte
func TestForecast(t *testing.T) {
t.Parallel()
var resp openweather.ForecastResponse
err := json.Unmarshal(forecast, &resp)
require.NoError(t, err)
require.NotNil(t, forecast)
}