Files
sentinel/tests/sentry/models/test_statistical_detectors.py
2024-02-15 17:01:50 +00:00

15 lines
422 B
Python

import pytest
from sentry.models.statistical_detectors import RegressionType
@pytest.mark.parametrize(
["regression_type", "abbreviation"],
[
pytest.param(RegressionType.ENDPOINT, "e", id="endpoint"),
pytest.param(RegressionType.FUNCTION, "f", id="endpoint"),
],
)
def test_regression_type_abbreviation(regression_type, abbreviation):
assert regression_type.abbreviate() == abbreviation