mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
17 lines
583 B
Python
17 lines
583 B
Python
from django.urls import reverse
|
|
|
|
from sentry.testutils.cases import APITestCase
|
|
from sentry.testutils.silo import region_silo_test
|
|
|
|
|
|
@region_silo_test
|
|
class ProjectAgnosticRuleConditionsTest(APITestCase):
|
|
def test_simple(self):
|
|
self.login_as(user=self.user)
|
|
org = self.create_organization(owner=self.user, name="baz")
|
|
url = reverse("sentry-api-0-project-agnostic-rule-conditions", args=[org.slug])
|
|
response = self.client.get(url, format="json")
|
|
|
|
assert response.status_code == 200, response.content
|
|
assert len(response.data) == 11
|