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.

chore(posthog-ai): run acp log parser tests without database setup (#115023)

posthog[bot]0b917004a3d0
diff --git a/posthog/test/repo_invariants/database_free_test_classes_baseline.txt b/posthog/test/repo_invariants/database_free_test_classes_baseline.txt
index b3e361ab29ad..773d78008b60 100644
--- a/posthog/test/repo_invariants/database_free_test_classes_baseline.txt
+++ b/posthog/test/repo_invariants/database_free_test_classes_baseline.txt
@@ -10,7 +10,6 @@ posthog/models/tophog/test/test_tophog_queries.py::TestTopHogQueries
posthog/tasks/test/test_usage_report.py::TestSendNoUsage
posthog/test/activity_logging/test_feature_flag_activity_logging.py::TestChangesBetweenFeatureFlags
posthog/test/test_check_product_migrations.py::TestCheckProductMigrations
-products/posthog_ai/eval_harness/test/test_acp_log.py::TestSandboxedTraceCaptureParser
products/posthog_ai/scripts/hogql_example/test/test_hogql_example.py::TestRenderHogQLExample
products/streamlit_apps/backend/tests/test_tasks.py::TestAutoRestartCrashedStreamlitSandboxes
products/streamlit_apps/backend/tests/test_tasks.py::TestStopIdleStreamlitSandboxes
diff --git a/products/posthog_ai/eval_harness/test/test_acp_log.py b/products/posthog_ai/eval_harness/test/test_acp_log.py
index a5e9ad59e63f..6943fe653541 100644
--- a/products/posthog_ai/eval_harness/test/test_acp_log.py
+++ b/products/posthog_ai/eval_harness/test/test_acp_log.py
@@ -2,7 +2,7 @@ from __future__ import annotations
import json
-from posthog.test.base import BaseTest
+import unittest
from products.posthog_ai.eval_harness.acp_log import parse_log
@@ -99,7 +99,7 @@ def _join(lines: list[str]) -> str:
return "\n".join(lines)
-class TestSandboxedTraceCaptureParser(BaseTest):
+class TestSandboxedTraceCaptureParser(unittest.TestCase):
def test_single_turn_text_response(self):
raw = _join(
[