mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
20 lines
622 B
Python
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
|