@@ -228,7 +228,7 @@ def test_liquid_motor_flight(mock_show, flight_calisto_liquid_modded): # pylint
228228
229229@pytest .mark .slow
230230@patch ("matplotlib.pyplot.show" )
231- def test_time_overshoot (mock_show , calisto_robust , example_spaceport_env ): # pylint: disable=unused-argument
231+ def test_time_overshoot_false (mock_show , calisto_robust , example_spaceport_env ): # pylint: disable=unused-argument
232232 """Test the time_overshoot parameter of the Flight class. This basically
233233 calls the all_info() method for a simulation without time_overshoot and
234234 checks if it returns None. It is not testing if the values are correct,
@@ -418,6 +418,19 @@ def test_air_brakes_flight(mock_show, flight_calisto_air_brakes): # pylint: dis
418418 assert air_brakes .prints .all () is None
419419
420420
421+ @patch ("matplotlib.pyplot.show" )
422+ def test_air_brakes_flight_with_overshoot (
423+ mock_show , flight_calisto_air_brakes_time_overshoot
424+ ): # pylint: disable=unused-argument
425+ """
426+ Same as test_air_brakes_flight but with time_overshoot=True.
427+ """
428+ test_flight = flight_calisto_air_brakes_time_overshoot
429+ air_brakes = test_flight .rocket .air_brakes [0 ]
430+ assert air_brakes .plots .all () is None
431+ assert air_brakes .prints .all () is None
432+
433+
421434@patch ("matplotlib.pyplot.show" )
422435def test_initial_solution (mock_show , example_plain_env , calisto_robust ): # pylint: disable=unused-argument
423436 """Tests the initial_solution option of the Flight class. This test simply
0 commit comments