def test_base_threshold_deprecation_warning() -> None:
        """Test that BaseThreshold class raises a DeprecationWarning."""
        with pytest.warns(
            DeprecationWarning,
            match="BaseThreshold is deprecated and will be removed in a future version. Use Threshold instead.",
        ):
            BaseThreshold()
Test that BaseThreshold class raises a DeprecationWarning.
tests/unit/metrics/threshold/test_threshold.py