@@ -8,7 +8,7 @@ def test_variable_exists(app):
8
8
except AttributeError :
9
9
raise AttributeError ("The function get_parking_lot should exist on app.py" )
10
10
11
- @pytest .mark .it ('The function get_parking_lot should return an object with correct values' )
11
+ @pytest .mark .it ('The function get_parking_lot should return a dictionary with the correct values' )
12
12
def test_correct_output (app ):
13
13
value1 = [[1 ,1 ,1 ], [0 ,0 ,0 ], [1 ,1 ,2 ]]
14
14
result1 = {'total_slots' : 6 , 'available_slots' : 1 , 'occupied_slots' : 5 }
@@ -17,11 +17,11 @@ def test_correct_output(app):
17
17
except AttributeError :
18
18
raise AttributeError ("The function get_parking_lot should exist on app.py" )
19
19
20
- @pytest .mark .it ('The function get_parking_lot should return an object with correct values' )
20
+ @pytest .mark .it ('The function get_parking_lot should return a dictionary with the correct values. Testing with a different matrix ' )
21
21
def test_different_values (app ):
22
22
value1 = [[1 ,2 ,1 ,0 ], [0 ,1 ,0 ,2 ], [1 ,0 ,1 ,1 ]]
23
23
result1 = {'total_slots' : 8 , 'available_slots' : 2 , 'occupied_slots' : 6 }
24
24
try :
25
25
assert app .get_parking_lot (value1 ) == result1
26
26
except AttributeError :
27
- raise AttributeError ("The function get_parking_lot should exist on app.py" )
27
+ raise AttributeError ("The function get_parking_lot should exist on app.py" )
0 commit comments