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

22 lines
619 B
Python

from django.test.client import RequestFactory
from fixtures.apidocs_test_case import APIDocsTestCase
from sentry.testutils.silo import region_silo_test
@region_silo_test
class ProjectGroupHashesDocs(APIDocsTestCase):
def setUp(self):
self.create_event("a")
event = self.create_event("b")
self.url = f"/api/0/organizations/{self.organization.slug}/issues/{event.group_id}/hashes/"
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)