test_group_hashes.py 550 B

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