Fixed final test and error message. Sometimes, I am an idiot. (#3792)

[no important files changed]
The test has changed, but this will allow more passing code without need for retest.
This commit is contained in:
BethanyG
2024-10-16 00:13:48 -07:00
committed by GitHub
parent df381d86f4
commit c230448e3f

View File

@@ -134,4 +134,7 @@ class PlaneTicketsTest(unittest.TestCase):
f'The function returned {actual_result}, but the tests '
f'expected {expected} when generating ticket numbers.')
self.assertEqual(list(generate_codes(seat_numbers, flight_id)), expected, msg=error_message)
# Note: DO NOT call the function here again, in case the student is using list.pop()
# to process the input. If another call is done with that condition,
# the test will fail with a terrible error message.
self.assertEqual(actual_result, expected, msg=error_message)