: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
"""Utilities for acceptance tests."""
import os
def get_service_url(service: str = "proxy") -> str:
"""Get the URL for a service."""
service_urls = {
"proxy": "http://localhost:8010",
"s3": "http://localhost:8333",
"clickhouse": "http://localhost:8123",
}
if service == "proxy" and (base_url := os.environ.get("POSTHOG_TEST_BASE_URL")):
return base_url
return service_urls.get(service, "http://localhost:8010")