test_group_hashes.py 632 B

123456789101112131415161718192021
  1. from django.test.client import RequestFactory
  2. from fixtures.apidocs_test_case import APIDocsTestCase
  3. from sentry.testutils.silo import region_silo_test
  4. @region_silo_test(stable=True)
  5. class ProjectGroupHashesDocs(APIDocsTestCase):
  6. def setUp(self):
  7. self.create_event("a")
  8. event = self.create_event("b")
  9. self.url = f"/api/0/organizations/{self.organization.slug}/issues/{event.group_id}/hashes/"
  10. self.login_as(user=self.user)
  11. def test_get(self):
  12. response = self.client.get(self.url)
  13. request = RequestFactory().get(self.url)
  14. self.validate_schema(request, response)