File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ def test_one_call_from_dict(self):
2222 self .assertEqual (1587744158 , result .current .reference_time ())
2323 self .assertEqual (48 , len (result .forecast_hourly ))
2424 dt_hourly = 1587744000
25+ for w in result .forecast_minutely :
26+ self .assertIsInstance (w , Weather )
2527 for i , weather in enumerate (result .forecast_hourly ):
2628 self .assertTrue (isinstance (weather , Weather ), f"entry { i } of forecast_hourly is invalid" )
2729 self .assertEqual (dt_hourly , weather .reference_time ())
@@ -137,6 +139,47 @@ def test_to_geopoint(self):
137139 }
138140 ]
139141 },
142+ "minutely" : [
143+ {
144+ "dt" : 1587744000 ,
145+ "temp" : 295.34 ,
146+ "feels_like" : 291.77 ,
147+ "pressure" : 1008 ,
148+ "humidity" : 22 ,
149+ "dew_point" : 272.7 ,
150+ "clouds" : 20 ,
151+ "wind_speed" : 2.15 ,
152+ "wind_deg" : 217 ,
153+ "weather" : [
154+ {
155+ "id" : 801 ,
156+ "main" : "Clouds" ,
157+ "description" : "few clouds" ,
158+ "icon" : "02d"
159+ }
160+ ]
161+ },
162+ {
163+ "dt" : 1587747600 ,
164+ "temp" : 292.9 ,
165+ "feels_like" : 290.43 ,
166+ "pressure" : 1009 ,
167+ "humidity" : 40 ,
168+ "dew_point" : 278.93 ,
169+ "clouds" : 59 ,
170+ "wind_speed" : 2.14 ,
171+ "wind_deg" : 210 ,
172+ "weather" : [
173+ {
174+ "id" : 500 ,
175+ "main" : "Rain" ,
176+ "description" : "light rain" ,
177+ "icon" : "10d"
178+ }
179+ ],
180+ "precipitation" : 0.14
181+ },
182+ ],
140183 "hourly" : [
141184 {
142185 "dt" : 1587744000 ,
You can’t perform that action at this time.
0 commit comments