Files
sentinel/tests/sentry/api/endpoints/test_internal_queue_tasks.py
2024-02-15 17:01:50 +00:00

13 lines
425 B
Python

from sentry.testutils.cases import APITestCase
from sentry.testutils.silo import all_silo_test
@all_silo_test
class InternalQueueTasksListTest(APITestCase):
def test_anonymous(self):
self.login_as(self.user, superuser=True)
url = "/api/0/internal/queue/tasks/"
response = self.client.get(url)
assert response.status_code == 200
assert "sentry.tasks.send_beacon" in response.data