Skip to content

Commit 9a637a8

Browse files
TST: fix tests not passing
1 parent cbaa145 commit 9a637a8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

tests/fixtures/environment/environment_fixtures.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from datetime import datetime, timedelta
22

33
import pytest
4+
45
from rocketpy import Environment, EnvironmentAnalysis
56

67

@@ -54,8 +55,8 @@ def env_analysis():
5455
EnvironmentAnalysis
5556
"""
5657
env_analysis = EnvironmentAnalysis(
57-
start_date=datetime.datetime(2019, 10, 23),
58-
end_date=datetime.datetime(2021, 10, 23),
58+
start_date=datetime(2019, 10, 23),
59+
end_date=datetime(2021, 10, 23),
5960
latitude=39.3897,
6061
longitude=-8.28896388889,
6162
start_hour=6,

tests/test_flight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def test_velocities(flight_calisto_custom_wind, flight_time, expected_values):
729729
("t_initial", (1.6542528, 0.65918, -0.067107)),
730730
("out_of_rail_time", (5.05334, 2.01364, -1.7541)),
731731
("apogee_time", (2.35291, -1.8275, -0.87851)),
732-
("t_final", (0, 0, 159.2212)),
732+
("t_final", (0, 0, 159.3292416824044)),
733733
],
734734
)
735735
def test_aerodynamic_forces(flight_calisto_custom_wind, flight_time, expected_values):

tests/unit/test_utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_fin_flutter_analysis(flight_calisto_custom_wind):
153153
assert np.isclose(flutter_mach(np.inf), 1.0048188594647927, atol=5e-3)
154154
assert np.isclose(safety_factor(0), 64.78797, atol=5e-3)
155155
assert np.isclose(safety_factor(10), 2.1948620401502072, atol=5e-3)
156-
assert np.isclose(safety_factor(np.inf), 61.64222220469224, atol=5e-3)
156+
assert np.isclose(safety_factor(np.inf), 61.62131849619694, atol=5e-3)
157157

158158

159159
def test_flutter_prints(flight_calisto_custom_wind):

0 commit comments

Comments
 (0)