Skip to content

Commit

Permalink
maybe fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelFu512 committed Jun 3, 2024
1 parent e30ed8e commit 6d61306
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion evalml/tests/automl_tests/test_automl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1530,9 +1530,12 @@ def test_results_getter(AutoMLTestEnv, X_y_binary):

assert automl.results["pipeline_results"][0]["mean_cv_score"] == 1.0

with pytest.raises(AttributeError, match="set attribute"):
with pytest.raises(AttributeError) as atr_error:

Check warning on line 1533 in evalml/tests/automl_tests/test_automl.py

View check run for this annotation

Codecov / codecov/patch

evalml/tests/automl_tests/test_automl.py#L1533

Added line #L1533 was not covered by tests
automl.results = 2.0

assert "set attribute" in str(atr_error.value) or "has no setter" in str(

Check warning on line 1536 in evalml/tests/automl_tests/test_automl.py

View check run for this annotation

Codecov / codecov/patch

evalml/tests/automl_tests/test_automl.py#L1536

Added line #L1536 was not covered by tests
atr_error.value,
)
automl.results["pipeline_results"][0]["mean_cv_score"] = 2.0
assert automl.results["pipeline_results"][0]["mean_cv_score"] == 1.0

Expand Down

0 comments on commit 6d61306

Please sign in to comment.