Skip to content

Commit

Permalink
Updates constraint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dk-teknologisk-mon committed Aug 9, 2024
1 parent 0c88b6d commit 1ee80e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ProcessOptimizer/tests/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1ee80e9

Please sign in to comment.