Add weather API bundle adapter

This commit is contained in:
2026-05-29 17:06:39 +00:00
parent 8c065751c2
commit a885959d39
17 changed files with 1264 additions and 18 deletions

View File

@@ -15,6 +15,17 @@ func TestLoadLocationAcceptsChicagoAlias(t *testing.T) {
}
}
func TestLoadLocationAcceptsWeatherAPITimezones(t *testing.T) {
tests := []string{"Stl", "CDT", "-5", "+09:30"}
for _, tt := range tests {
t.Run(tt, func(t *testing.T) {
if _, err := LoadLocation(tt); err != nil {
t.Fatalf("LoadLocation(%q) error = %v", tt, err)
}
})
}
}
func TestParseLocalDate(t *testing.T) {
location := time.FixedZone("Test", -5*60*60)
got, err := ParseLocalDate("2026-05-29", location)