def test_threshold_abstract_methods() -> None:
        """Test that Threshold class raises NotImplementedError for abstract methods."""
        threshold = Threshold()

        with pytest.raises(NotImplementedError, match="Subclass of Threshold must implement the compute method"):
            threshold.compute()

        with pytest.raises(NotImplementedError, match="Subclass of Threshold must implement the update method"):
            threshold.update()
Test that Threshold class raises NotImplementedError for abstract methods.
tests/unit/metrics/threshold/test_threshold.py