@@ -102,7 +102,7 @@ def test_liquid_motor_flight(mock_show, flight_calisto_liquid_modded): # pylint
102102
103103@pytest .mark .slow
104104@patch ("matplotlib.pyplot.show" )
105- def test_time_overshoot (mock_show , calisto_robust , example_spaceport_env ): # pylint: disable=unused-argument
105+ def test_time_overshoot_false (mock_show , calisto_robust , example_spaceport_env ): # pylint: disable=unused-argument
106106 """Test the time_overshoot parameter of the Flight class. This basically
107107 calls the all_info() method for a simulation without time_overshoot and
108108 checks if it returns None. It is not testing if the values are correct,
@@ -293,6 +293,19 @@ def test_air_brakes_flight(mock_show, flight_calisto_air_brakes): # pylint: dis
293293 assert air_brakes .prints .all () is None
294294
295295
296+ @patch ("matplotlib.pyplot.show" )
297+ def test_air_brakes_flight_with_overshoot (
298+ mock_show , flight_calisto_air_brakes_time_overshoot
299+ ): # pylint: disable=unused-argument
300+ """
301+ Same as test_air_brakes_flight but with time_overshoot=True.
302+ """
303+ test_flight = flight_calisto_air_brakes_time_overshoot
304+ air_brakes = test_flight .rocket .air_brakes [0 ]
305+ assert air_brakes .plots .all () is None
306+ assert air_brakes .prints .all () is None
307+
308+
296309@patch ("matplotlib.pyplot.show" )
297310def test_initial_solution (mock_show , example_plain_env , calisto_robust ): # pylint: disable=unused-argument
298311 """Tests the initial_solution option of the Flight class. This test simply
0 commit comments