fix cities search when there is only one result
This commit is contained in:
parent
ad99fef5c2
commit
cc2ff8ff22
2 changed files with 3 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ class WeatherTest(BackendTest):
|
|||
self.assertTrue(len(list(paris)) == 0)
|
||||
|
||||
paris = self.backend.iter_city_search('paris')
|
||||
self.assertTrue(len(list(paris)) > 1)
|
||||
self.assertTrue(len(list(paris)) >= 1)
|
||||
|
||||
paris = self.backend.iter_city_search('paris france')
|
||||
self.assertTrue(len(list(paris)) == 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue