Skip to content

Commit 83893ff

Browse files
committed
update test with correct function name and doc
1 parent fb90e4b commit 83893ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mapie/tests/risk_control/test_binary_classification_control.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,9 @@ def test_check_risks_targets_same_len(
422422
target_level: Union[float, List[float]],
423423
) -> None:
424424
"""
425-
Test that BinaryClassificationController._check_risks_targets_same_len raises an
426-
error when the lengths of the provided risk and target_level lists do not match.
425+
Test that BinaryClassificationController._check_if_multi_risk_control raises an
426+
error when the lengths of the provided risk and target_level lists do not match,
427+
or when a single risk is provided with multiple target levels and vice versa.
427428
"""
428429
with pytest.raises(ValueError, match='If you provide a list of risks,'):
429-
BinaryClassificationController._check_risks_targets_same_len(risk, target_level)
430+
BinaryClassificationController._check_if_multi_risk_control(risk, target_level)

0 commit comments

Comments
 (0)