Skip to content

Commit 86ad3f1

Browse files
Merge pull request #1 from tomorrowdevs-projects/fix-test001
test 001- change input type to str
2 parents b5059e2 + 9355e73 commit 86ad3f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/001-area-of-a-room/python/test_area_of_a_room.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_ok_int_input(self, mock_inputs):
2222
"""
2323
Check correctly result with inputs int
2424
"""
25-
mock_inputs.side_effect = [2, 2] # width, length
25+
mock_inputs.side_effect = ['2', '2'] # width, length
2626

2727
with patch('sys.stdout', new_callable=io.StringIO) as mock_print:
2828
sys.modules.pop(self.module_name, None)
@@ -42,7 +42,7 @@ def test_ok_float_input(self, mock_inputs):
4242
"""
4343
Check correctly result with inputs float
4444
"""
45-
mock_inputs.side_effect = [2.0, 2.0] # width, length
45+
mock_inputs.side_effect = ['2.0', '2.0'] # width, length
4646

4747
with patch('sys.stdout', new_callable=io.StringIO) as mock_print:
4848
sys.modules.pop(self.module_name, None)

0 commit comments

Comments
 (0)