Files
2024-02-15 17:01:50 +00:00

22 lines
541 B
Python

import pytest
from sentry.stacktraces.platform import get_behavior_family_for_platform
@pytest.mark.parametrize(
"input,output",
[
("native", "native"),
("c", "native"),
("swift", "native"),
("cocoa", "native"),
("objc", "native"),
("javascript", "javascript"),
("node", "javascript"),
("elixir", "other"),
("whatever", "other"),
],
)
def test_get_grouping_family_for_platform(input, output):
assert get_behavior_family_for_platform(input) == output