: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
chore(ci): freeze the openalex request-test clock (#127956)
posthog[bot]18cb6bb2c466
diff --git a/products/warehouse_sources/sources/openalex/tests/test_openalex.py b/products/warehouse_sources/sources/openalex/tests/test_openalex.pyindex 35ebb2bf0512..304626443233 100644--- a/products/warehouse_sources/sources/openalex/tests/test_openalex.py+++ b/products/warehouse_sources/sources/openalex/tests/test_openalex.py@@ -1,14 +1,15 @@import datetime+from collections.abc import Iteratorfrom typing import Any, Optionalimport pytest+import time_machinefrom products.warehouse_sources.sources.openalex._config import OpenalexSourceConfigfrom products.warehouse_sources.sources.openalex.openalex import (PAGE_SIZE,OpenAlexResumeConfig,build_filter,- utc_today,validate_credentials,)from products.warehouse_sources.sources.openalex.settings import ENDPOINTS, OPENALEX_ENDPOINTS@@ -23,7 +24,7 @@ from products.warehouse_sources.sources.sdk.testing import (INSTITUTION_FILTER = "authorships.institutions.lineage:i27837315"SOURCE_FILTER = "source_id:S4306400194"-TODAY = utc_today()+TODAY = datetime.date(2026, 7, 20)def _page(cursor: Optional[str], rows: Optional[list[dict[str, Any]]] = None) -> ScriptedResponse:@@ -133,6 +134,11 @@ class TestPagination:class TestRequestParams:+ @pytest.fixture(autouse=True)+ def fixed_clock(self) -> Iterator[None]:+ with time_machine.travel(datetime.datetime.combine(TODAY, datetime.time(), tzinfo=datetime.UTC), tick=False):+ yield+def test_incremental_run_sends_the_watermark_as_a_server_side_filter(self) -> None:result = _drive("works",