Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
bpkroth committed Nov 25, 2024
1 parent 7a4f50e commit c193718
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def test_context_not_implemented_warning(
suggestion = optimizer.suggest()
scores = pd.Series({"score": [1]})
context = pd.Series([["something"]])
suggestion.context = context

suggestion._context = context # pylint: disable=protected-access
with pytest.raises(UserWarning):
optimizer.register(observations=suggestion.complete(scores))

Expand Down

0 comments on commit c193718

Please sign in to comment.