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.

fix(ci): exclude .github paths from personhog_fake fixture (#66319)

mendral-app[bot]29df0760e5b7
diff --git a/conftest.py b/conftest.py
index 618683b4c50f..fba2aae92bda 100644
--- a/conftest.py
+++ b/conftest.py
@@ -57,7 +57,8 @@ def _activate_personhog_fake(request):
(create_person, create_group, etc.) — no signals are used. Tests in
personhog_client/ manage their own client and are excluded.
"""
- if "personhog_client" in str(request.node.path):
+ node_path = str(request.node.path)
+ if "personhog_client" in node_path or ".github" in node_path:
yield
return
from posthog.test.personhog_fake import activate_personhog_fake # noqa: PLC0415, I001 — lazy import avoids connecting signals before Django is ready