mekosotto commited on
Commit
8418e43
·
1 Parent(s): a0c0f61

test(agents/orchestrator): pin caplog handler to INFO (hardens against pytest variance)

Browse files
Files changed (1) hide show
  1. tests/agents/test_orchestrator.py +2 -0
tests/agents/test_orchestrator.py CHANGED
@@ -7,6 +7,7 @@ tools and assembles the trace correctly.
7
  from __future__ import annotations
8
 
9
  import json
 
10
  from typing import Any
11
  from unittest.mock import MagicMock
12
 
@@ -258,6 +259,7 @@ class TestOrchestrator:
258
  workflow_query_builder=lambda user_input, pipeline_trace, context: "q",
259
  )
260
  from src.agents import orchestrator as orch_module
 
261
  orch_module.logger.addHandler(caplog.handler)
262
  try:
263
  result = orch.run("CCO")
 
7
  from __future__ import annotations
8
 
9
  import json
10
+ import logging
11
  from typing import Any
12
  from unittest.mock import MagicMock
13
 
 
259
  workflow_query_builder=lambda user_input, pipeline_trace, context: "q",
260
  )
261
  from src.agents import orchestrator as orch_module
262
+ caplog.handler.setLevel(logging.INFO)
263
  orch_module.logger.addHandler(caplog.handler)
264
  try:
265
  result = orch.run("CCO")