mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
28 lines
771 B
Python
28 lines
771 B
Python
from django.test.client import RequestFactory
|
|
from django.urls import reverse
|
|
|
|
from fixtures.apidocs_test_case import APIDocsTestCase
|
|
from sentry.testutils.silo import region_silo_test
|
|
|
|
|
|
@region_silo_test
|
|
class OrganizationShortIDDocs(APIDocsTestCase):
|
|
def setUp(self):
|
|
group = self.create_group(project=self.project)
|
|
|
|
self.url = reverse(
|
|
"sentry-api-0-short-id-lookup",
|
|
kwargs={
|
|
"organization_slug": self.organization.slug,
|
|
"short_id": group.qualified_short_id,
|
|
},
|
|
)
|
|
|
|
self.login_as(user=self.user)
|
|
|
|
def test_get(self):
|
|
response = self.client.get(self.url)
|
|
request = RequestFactory().get(self.url)
|
|
|
|
self.validate_schema(request, response)
|