Skip to content

Commit e2a94c8

Browse files
committed
TST: fix tests
1 parent e5c7533 commit e2a94c8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/test_flight.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -604,12 +604,12 @@ def test_max_values(flight_calisto_robust):
604604
calculated by hand, it was just copied from the test results. This is
605605
because the expected values are not easy to calculate by hand, and the
606606
results are not expected to change. If the results change, the test will
607-
fail, and the expected values must be updated. If if want to update the
608-
values, always double check if the results are really correct. Acceptable
609-
reasons for changes in the results are: 1) changes in the code that
610-
improve the accuracy of the simulation, 2) a bug was found and fixed. Keep
611-
in mind that other tests may be more accurate than this one, for example,
612-
the acceptance tests, which are based on the results of real flights.
607+
fail, and the expected values must be updated. If the values are updated,
608+
always double check if the results are really correct. Acceptable reasons
609+
for changes in the results are: 1) changes in the code that improve the
610+
accuracy of the simulation, 2) a bug was found and fixed. Keep in mind that
611+
other tests may be more accurate than this one, for example, the acceptance
612+
tests, which are based on the results of real flights.
613613
614614
Parameters
615615
----------
@@ -622,7 +622,7 @@ def test_max_values(flight_calisto_robust):
622622
assert pytest.approx(105.2774, abs=atol) == test.max_acceleration_power_on
623623
assert pytest.approx(105.2774, abs=atol) == test.max_acceleration
624624
assert pytest.approx(0.85999, abs=atol) == test.max_mach_number
625-
assert pytest.approx(285.90240, abs=atol) == test.max_speed
625+
assert pytest.approx(285.94948, abs=atol) == test.max_speed
626626

627627

628628
def test_rail_buttons_forces(flight_calisto_custom_wind):

0 commit comments

Comments
 (0)