Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

perf(tests): drop database setup from the scope tests (#97795)

Paul D'Ambrabee18baabaeb
diff --git a/posthog/test/test_scopes.py b/posthog/test/test_scopes.py
index 46b005c16e39..0e28a8b0a9dc 100644
--- a/posthog/test/test_scopes.py
+++ b/posthog/test/test_scopes.py
@@ -2,8 +2,6 @@ import re
import runpy
from pathlib import Path
-from posthog.test.base import BaseTest
-
from django.test import SimpleTestCase
from parameterized import parameterized
@@ -33,7 +31,7 @@ from posthog.scopes import (
)
-class TestDowngradeScopesToReadOnly(BaseTest):
+class TestDowngradeScopesToReadOnly(SimpleTestCase):
@parameterized.expand(
[
("empty_string", "", ""),
@@ -85,7 +83,7 @@ INTERNAL_SCOPE_CASES = [
]
-class TestScopeSets(BaseTest):
+class TestScopeSets(SimpleTestCase):
def test_all_scopes_matches_scope_descriptions_keys(self) -> None:
self.assertEqual(ALL_SCOPES, frozenset(get_scope_descriptions().keys()))