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(hogql): run typegen tests without a database (#100855)

posthog[bot]37270315a341
diff --git a/posthog/hogql/functions/test/test_typegen.py b/posthog/hogql/functions/test/test_typegen.py
index e4be92d24ab1..fc2a35e23fae 100644
--- a/posthog/hogql/functions/test/test_typegen.py
+++ b/posthog/hogql/functions/test/test_typegen.py
@@ -1,11 +1,11 @@
-from posthog.test.base import BaseTest
+from django.test import SimpleTestCase
from posthog.hogql.ast import BooleanType, FloatType, IntegerType, StringType
from posthog.hogql.functions.core import AnyConstantType
from posthog.hogql.functions.typegen import generate_json_path_signatures, generate_variadic_signatures
-class TestTypegen(BaseTest):
+class TestTypegen(SimpleTestCase):
def test_generate_variadic_signatures_basic(self):
"""Test basic variadic signature generation."""
# Test with no variadic arguments
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 8ca63ea9a368..06f8e72bccec 100644
--- a/posthog/test/repo_invariants/database_free_test_classes_baseline.txt
+++ b/posthog/test/repo_invariants/database_free_test_classes_baseline.txt
@@ -117,7 +117,6 @@ posthog/hogql/database/schema/test/test_web_analytics_s3.py::TestWebAnalyticsS3
posthog/hogql/database/test/test_argmax.py::TestArgmax
posthog/hogql/database/test/test_postgres_table.py::TestPostgresTablePrimaryKey
posthog/hogql/database/test/test_s3_table_clickhouse.py::TestS3ParquetTimezoneConversion
-posthog/hogql/functions/test/test_typegen.py::TestTypegen
posthog/hogql/printer/test/test_sql_injection_defenses.py::TestEscapePreservationOnParserOutput
posthog/hogql/printer/test/test_sql_injection_defenses.py::TestParserPathProducesOnlyAllowlistedVerbatimValues
posthog/hogql/printer/test/test_sql_injection_defenses.py::TestPrintTimeOnlyAllowlists