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

20 lines
622 B
Python

from django.urls import reverse
from sentry.testutils.cases import TestCase
class DocsRedirectTest(TestCase):
def test_response(self):
path = reverse("sentry-docs-redirect")
resp = self.client.get(path)
assert resp["Location"] == "https://docs.sentry.io/"
assert resp.status_code == 302, resp.status_code
class ApiDocsRedirectTest(TestCase):
def test_response(self):
path = reverse("sentry-api-docs-redirect")
resp = self.client.get(path)
assert resp["Location"] == "https://docs.sentry.io/api/"
assert resp.status_code == 302, resp.status_code