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(custom): fix preview test that fails on master (#112614)

Raúl Negrón-Otero039fb8425382
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/custom/test_custom_source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/custom/test_custom_source.py
index 816195760f32..d19842004957 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/custom/test_custom_source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/custom/test_custom_source.py
@@ -2797,9 +2797,6 @@ class TestCustomSourcePreviewResource(SimpleTestCase):
manifest = _minimal_manifest()
manifest["resources"][0]["endpoint"]["incremental"] = {"cursor_path": "updated_at", "start_param": "since"}
manifest["resources"][0]["endpoint"]["paginator"] = {"type": "offset", "limit": 100}
- manifest["resource_defaults"] = {
- "endpoint": {"incremental": {"cursor_path": "id", "start_param": "after", "cursor_type": "integer"}}
- }
source = CustomSource()
config = CustomSourceConfig(manifest_json=json.dumps(manifest), auth_token="abc")
source.preview_resource(config, team_id=999, resource_name="users")
@@ -2808,7 +2805,6 @@ class TestCustomSourcePreviewResource(SimpleTestCase):
endpoint = engine_manifest["resources"][0]["endpoint"]
assert endpoint["paginator"] == {"type": "single_page"}
assert "incremental" not in endpoint
- assert "incremental" not in engine_manifest["resource_defaults"]["endpoint"]
assert isinstance(engine_manifest["client"]["session"], _PreviewSession)
assert engine_manifest["client"]["max_retries"] == 1
assert mock_resources.call_args.kwargs["db_incremental_field_last_value"] is None