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 test assertions (#60050)

mendral-app[bot]6f1ce5aab2eb
diff --git a/products/tasks/backend/temporal/process_task/tests/test_workflow.py b/products/tasks/backend/temporal/process_task/tests/test_workflow.py
index f913355dd9a7..3fa2d50ded38 100644
--- a/products/tasks/backend/temporal/process_task/tests/test_workflow.py
+++ b/products/tasks/backend/temporal/process_task/tests/test_workflow.py
@@ -296,15 +296,19 @@ class TestProcessTaskWorkflowUnit:
deprecate_patch.assert_called_with(process_task_workflow_module._PATCH_ID_FOLLOWUP_QUEUE)
logger.info.assert_any_call(
"send_followup_signal_received",
- run_id=None,
- message_length=5,
- artifact_count=1,
+ extra={
+ "run_id": None,
+ "message_length": 5,
+ "artifact_count": 1,
+ },
)
logger.info.assert_any_call(
"send_followup_signal_received",
- run_id=None,
- message_length=6,
- artifact_count=1,
+ extra={
+ "run_id": None,
+ "message_length": 6,
+ "artifact_count": 1,
+ },
)
assert logger.info.call_count == 2