From 1ee80e9e3d0ff96d5340ce88750615e626442fa8 Mon Sep 17 00:00:00 2001 From: Morten Bormann Nielsen Date: Fri, 9 Aug 2024 14:16:37 +0200 Subject: [PATCH] Updates constraint tests --- ProcessOptimizer/tests/test_constraints.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ProcessOptimizer/tests/test_constraints.py b/ProcessOptimizer/tests/test_constraints.py index 120aa2cb..40a0c89b 100644 --- a/ProcessOptimizer/tests/test_constraints.py +++ b/ProcessOptimizer/tests/test_constraints.py @@ -245,6 +245,7 @@ def test_SumEquals(): n_initial_points=10, ) opt.set_constraints(cons) + # Check that we can ask for 10 points assert opt.ask(10) # We should not be able to ask for 11 with raises(ValueError):