mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
15 lines
422 B
Python
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
|