Skip to content

Commit

Permalink
Consider both Boolean values for flag test
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed Nov 26, 2024
1 parent c09631b commit 1766f8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def test_candidate_toggling(constraints, exclude, complement):
[SearchSpaceType.DISCRETE, SearchSpaceType.CONTINUOUS],
ids=lambda x: x.name,
)
@pytest.mark.parametrize("value", [True, param(UNSPECIFIED, id=repr(UNSPECIFIED))])
@pytest.mark.parametrize(
"value", [True, False, param(UNSPECIFIED, id=repr(UNSPECIFIED))]
)
def test_setting_allow_flags(flag, space_type, value):
"""Passed allow_* flags are rejected if incompatible with the search space type."""
kwargs = {flag: value}
Expand Down

0 comments on commit 1766f8e

Please sign in to comment.