File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ async def read_flight(
7575 """
7676 with tracer .start_as_current_span ("read_flight" ):
7777 return await controller .get_flight_by_id (flight_id )
78-
78+
7979@router .put ("/{flight_id}" , status_code = 204 )
8080async def update_flight (
8181 flight_id : str ,
@@ -116,7 +116,7 @@ async def update_flight_from_references(
116116 return await controller .update_flight_from_references (
117117 flight_id , payload
118118 )
119-
119+
120120@router .delete ("/{flight_id}" , status_code = 204 )
121121async def delete_flight (
122122 flight_id : str ,
@@ -209,7 +209,6 @@ async def update_flight_rocket(
209209 flight_id ,
210210 rocket = rocket ,
211211 )
212-
213212
214213@router .get ("/{flight_id}/simulate" )
215214async def get_flight_simulation (
@@ -223,5 +222,4 @@ async def get_flight_simulation(
223222 ``` flight_id: Flight ID ```
224223 """
225224 with tracer .start_as_current_span ("get_flight_simulation" ):
226- return await controller .get_flight_simulation (flight_id )
227-
225+ return await controller .get_flight_simulation (flight_id )
Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ def mock_controller_instance():
3737 mock_controller .get_rocketpy_environment_binary = AsyncMock ()
3838
3939 mock_class .return_value = mock_controller
40-
41-
4240 get_environment_controller .cache_clear ()
4341
4442 yield mock_controller
4543
44+ yield mock_controller
45+
4646 get_environment_controller .cache_clear ()
4747
4848
Original file line number Diff line number Diff line change 2020 RocketView ,
2121)
2222
23-
23+
2424from src .dependencies import get_rocket_controller
2525
2626from src import app
You can’t perform that action at this time.
0 commit comments