mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
19 lines
534 B
Python
19 lines
534 B
Python
from sentry.testutils.cases import APITestCase
|
|
from sentry.testutils.silo import region_silo_test
|
|
|
|
|
|
@region_silo_test
|
|
class UserOrganizationsTest(APITestCase):
|
|
endpoint = "sentry-api-0-user-organizations"
|
|
|
|
def setUp(self):
|
|
super().setUp()
|
|
self.login_as(self.user)
|
|
|
|
def test_simple(self):
|
|
organization_id = self.organization.id # force creation
|
|
|
|
response = self.get_success_response("me")
|
|
assert len(response.data) == 1
|
|
assert response.data[0]["id"] == str(organization_id)
|