Skip to content

Commit c998a5e

Browse files
committed
test: adapt receding horizon mocks to master
1 parent 5966740 commit c998a5e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/shard2/test_receding_horizon_hooks_and_shifts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_window_hooks_can_stop_after_collecting_diagnostics(monkeypatch):
1717
events = []
1818

1919
rhe = object.__new__(RecedingHorizonOptimization)
20-
rhe.nlp = [SimpleNamespace()]
20+
rhe.nlp = [SimpleNamespace(x_bounds={})]
2121
solver = SimpleNamespace(type=SolverType.IPOPT, online_optim=False)
2222
returned = rhe.solve(
2323
update_function=lambda *args: True,

tests/shard2/test_receding_horizon_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_failed_window_is_reported_and_not_exported(monkeypatch):
2020
monkeypatch.setattr(OptimalControlProgram, "solve", lambda *args, **kwargs: failed_solution)
2121

2222
rhe = object.__new__(RecedingHorizonOptimization)
23-
rhe.nlp = [SimpleNamespace()]
23+
rhe.nlp = [SimpleNamespace(x_bounds={})]
2424
solver = SimpleNamespace(type=SolverType.IPOPT, online_optim=False)
2525
solution = rhe.solve(
2626
update_function=lambda *args: True,

0 commit comments

Comments
 (0)