12345678910111213141516171819202122232425262728 |
- from django.test.client import RequestFactory
- from django.urls import reverse
- from fixtures.apidocs_test_case import APIDocsTestCase
- class ProjectEventsDocs(APIDocsTestCase):
- endpoint = "sentry-api-0-project-events"
- def setUp(self):
- self.create_event("a")
- self.create_event("b")
- self.url = reverse(
- self.endpoint,
- kwargs={
- "organization_slug": self.organization.slug,
- "project_slug": self.project.slug,
- },
- )
- 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)
|