allow wetboob to display temperatures either on celsius or on fahrenheit
Close #843
This commit is contained in:
parent
44681bb96e
commit
bfe39958bd
5 changed files with 61 additions and 21 deletions
|
|
@ -29,7 +29,7 @@ class MeteoFranceTest(BackendTest):
|
|||
|
||||
city = l[0]
|
||||
current = self.backend.get_current(city.id)
|
||||
self.assertTrue(current.temp > -20 and current.temp < 50)
|
||||
self.assertTrue(current.temp.value > -20 and current.temp.value < 50)
|
||||
|
||||
forecasts = list(self.backend.iter_forecast(city.id))
|
||||
self.assertTrue(len(forecasts) > 0)
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class WeatherTest(BackendTest):
|
|||
self.assertTrue(len(list(paris)) == 1)
|
||||
|
||||
current = self.backend.get_current(paris[0].id)
|
||||
self.assertTrue(current.temp is float(current.temp))
|
||||
self.assertTrue(current.temp.value is float(current.temp.value))
|
||||
|
||||
forecasts = list(self.backend.iter_forecast(paris[0].id))
|
||||
self.assertTrue(len(forecasts) == 10)
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class YahooTest(BackendTest):
|
|||
|
||||
city = l[0]
|
||||
current = self.backend.get_current(city.id)
|
||||
self.assertTrue(current.temp > -20 and current.temp < 50)
|
||||
self.assertTrue(current.temp.value > -20 and current.temp.value < 50)
|
||||
|
||||
forecasts = list(self.backend.iter_forecast(city.id))
|
||||
self.assertTrue(len(forecasts) > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue