10
10
11
11
def test_daily_temperatures ():
12
12
raw_json = '{"day": 6.35, "eve": 1.04, "morn": -0.13, "night": -2.47}'
13
- expected_schema = DailyTemperatures (morning = "0" , day = "6" , night = "\\ -2" )
13
+ expected_schema = DailyTemperatures (morning = "0" , day = "6" , night = "-2" )
14
14
15
15
assert DailyTemperatures .from_json (raw_json ) == expected_schema
16
16
@@ -85,8 +85,8 @@ def test_daily_weather():
85
85
expected_schema = DailyWeather (
86
86
uv_index = 1 ,
87
87
weather = [WeatherSummary (description = "Light rain" , icon_id = "04d" )],
88
- feels_like = DailyTemperatures (morning = "\\ -2" , day = "2" , night = "\\ -3" ),
89
- temp = DailyTemperatures (morning = "0" , day = "3" , night = "\\ -1" ),
88
+ feels_like = DailyTemperatures (morning = "-2" , day = "2" , night = "-3" ),
89
+ temp = DailyTemperatures (morning = "0" , day = "3" , night = "-1" ),
90
90
summary = "Expect a day of partly cloudy with clear spells" ,
91
91
)
92
92
@@ -105,8 +105,8 @@ def test_owmweather():
105
105
daily_weather = DailyWeather (
106
106
uv_index = 1 ,
107
107
weather = [WeatherSummary (description = "Light rain" , icon_id = "04d" )],
108
- feels_like = DailyTemperatures (morning = "\\ -2" , day = "2" , night = "\\ -3" ),
109
- temp = DailyTemperatures (morning = "0" , day = "3" , night = "\\ -1" ),
108
+ feels_like = DailyTemperatures (morning = "-2" , day = "2" , night = "-3" ),
109
+ temp = DailyTemperatures (morning = "0" , day = "3" , night = "-1" ),
110
110
summary = "Expect a day of partly cloudy with clear spells" ,
111
111
)
112
112
alert = Alert (
@@ -157,8 +157,8 @@ def test_owmweather_default_alerts():
157
157
daily_weather = DailyWeather (
158
158
uv_index = 1 ,
159
159
weather = [WeatherSummary (description = "Light rain" , icon_id = "04d" )],
160
- feels_like = DailyTemperatures (morning = "\\ -2" , day = "2" , night = "\\ -3" ),
161
- temp = DailyTemperatures (morning = "0" , day = "3" , night = "\\ -1" ),
160
+ feels_like = DailyTemperatures (morning = "-2" , day = "2" , night = "-3" ),
161
+ temp = DailyTemperatures (morning = "0" , day = "3" , night = "-1" ),
162
162
summary = "Expect a day of partly cloudy with clear spells" ,
163
163
)
164
164
expected_schema = OWMWeather (current = current_weather , daily = [daily_weather ])
0 commit comments