Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1d1978c

Browse files
Update test.py
1 parent 954fbc5 commit 1d1978c

File tree

1 file changed

+3
-3
lines changed
  • exercises/15.2-Parking_lot_check

1 file changed

+3
-3
lines changed

‎exercises/15.2-Parking_lot_check/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def test_variable_exists(app):
88
except AttributeError:
99
raise AttributeError("The function get_parking_lot should exist on app.py")
1010

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')
1212
def test_correct_output(app):
1313
value1 = [[1,1,1], [0,0,0], [1,1,2]]
1414
result1 = {'total_slots': 6, 'available_slots': 1, 'occupied_slots': 5}
@@ -17,11 +17,11 @@ def test_correct_output(app):
1717
except AttributeError:
1818
raise AttributeError("The function get_parking_lot should exist on app.py")
1919

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')
2121
def test_different_values(app):
2222
value1 = [[1,2,1,0], [0,1,0,2], [1,0,1,1]]
2323
result1 = {'total_slots': 8, 'available_slots': 2, 'occupied_slots': 6}
2424
try:
2525
assert app.get_parking_lot(value1) == result1
2626
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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /