Skip to content

Commit 7980854

Browse files
Apply formatting suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 24a0dfc commit 7980854

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/routes/flight.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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)
8080
async 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)
121121
async 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")
215214
async 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)

tests/unit/test_routes/test_environments_route.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

tests/unit/test_routes/test_rockets_route.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
RocketView,
2121
)
2222

23-
23+
2424
from src.dependencies import get_rocket_controller
2525

2626
from src import app

0 commit comments

Comments
 (0)