Skip to content

Commit 91e2130

Browse files
committed
TST: fix get_controller_observed_variables test
1 parent a1b4be9 commit 91e2130

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/unit/simulation/test_flight.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ def test_get_controller_observed_variables(flight_calisto_air_brakes):
162162
working as intended."""
163163
obs_vars = flight_calisto_air_brakes.get_controller_observed_variables()
164164
assert isinstance(obs_vars, list)
165-
assert len(obs_vars) == 0
165+
# The basic air brakes controller mutates the deployment level but does not
166+
# return observed variables, so every logged entry is None.
167+
assert len(obs_vars) > 0
168+
assert all(var is None for var in obs_vars)
166169

167170

168171
def test_initial_stability_margin(flight_calisto_custom_wind):

0 commit comments

Comments
 (0)