mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
22 lines
625 B
Python
22 lines
625 B
Python
from sentry.testutils.cases import APITestCase
|
|
from sentry.testutils.silo import region_silo_test
|
|
|
|
|
|
@region_silo_test
|
|
class ProjectTeamsTest(APITestCase):
|
|
endpoint = "sentry-api-0-project-teams"
|
|
|
|
def setUp(self):
|
|
super().setUp()
|
|
self.login_as(self.user)
|
|
|
|
def test_simple(self):
|
|
team = self.create_team()
|
|
project = self.create_project(teams=[team])
|
|
|
|
response = self.get_success_response(project.organization.slug, project.slug)
|
|
|
|
assert len(response.data) == 1
|
|
assert response.data[0]["slug"] == team.slug
|
|
assert response.data[0]["name"] == team.name
|