Skip to content

Commit 95bce8f

Browse files
fixes exception handling tests
1 parent 8e9e4b1 commit 95bce8f

File tree

6 files changed

+407
-253
lines changed

6 files changed

+407
-253
lines changed

lib/views/environment.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ class EnvSummary(BaseModel):
4949
geodesic_to_utm: Optional[Any] = None
5050
utm_to_geodesic: Optional[Any] = None
5151

52-
model_config = ConfigDict(
53-
json_encoders={Any: to_python_primitive}
54-
)
52+
model_config = ConfigDict(json_encoders={Any: to_python_primitive})
5553

5654

5755
class EnvCreated(BaseModel):

lib/views/flight.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ class FlightSummary(RocketSummary, EnvSummary):
151151
z_impact: Optional[Any] = None
152152
flight_phases: Optional[Any] = None
153153

154-
model_config = ConfigDict(
155-
json_encoders={Any: to_python_primitive}
156-
)
154+
model_config = ConfigDict(json_encoders={Any: to_python_primitive})
157155

158156

159157
class FlightCreated(BaseModel):

lib/views/motor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ class MotorSummary(BaseModel):
6969
total_mass_flow_rate: Optional[Any] = None
7070
thrust: Optional[Any] = None
7171

72-
model_config = ConfigDict(
73-
json_encoders={Any: to_python_primitive}
74-
)
72+
model_config = ConfigDict(json_encoders={Any: to_python_primitive})
7573

7674

7775
class MotorCreated(BaseModel):

lib/views/rocket.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ class RocketSummary(MotorSummary):
3838
thrust_to_weight: Optional[Any] = None
3939
total_lift_coeff_der: Optional[Any] = None
4040

41-
model_config = ConfigDict(
42-
json_encoders={Any: to_python_primitive}
43-
)
41+
model_config = ConfigDict(json_encoders={Any: to_python_primitive})
4442

4543

4644
class RocketCreated(BaseModel):

0 commit comments

Comments
 (0)