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

15 lines
531 B
Python

from fixtures.integrations.stub_service import StubService
from sentry.integrations.jira_server.utils import build_user_choice
from sentry.testutils.cases import TestCase
from sentry.testutils.silo import control_silo_test
@control_silo_test
class BuildUserChoiceTest(TestCase):
def test_jira_server(self):
user_response = StubService.get_stub_data("jira", "jira_server_user.json")
assert build_user_choice(user_response, "name") == (
"bob",
"Bobby - [email protected] (bob)",
)