Skip to content

Commit 13eb3d6

Browse files
String int test
1 parent f7d4278 commit 13eb3d6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/unit/manager_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ def test_weather_to_text_is_string(self):
1313
assert type(weather_text) is StringType
1414

1515
@raises(ValueError)
16-
def test_weather_to_text_invalid_input(self):
16+
def test_weather_to_text_invalid_input_None(self):
1717
weather_text = self.manager._weather_to_text(None)
1818

1919
@raises(ValueError)
20-
def test_weather_to_text_out_of_bounds_input(self):
20+
def test_weather_to_text_invalid_input_out_of_bounds(self):
2121
weather_text = self.manager._weather_to_text(31)
22+
23+
@raises(ValueError)
24+
def test_weather_to_text_invalid_input_String(self):
25+
weather_text = self.manager._weather_to_text('1')

0 commit comments

Comments
 (0)