Skip to content

Commit 26672c1

Browse files
committed
Test: Configure absent execution stats in observer registration fixture
The mocked scheduler evaluation does not create a tracking context. Return None from the mocked tracker, matching the real contract and preventing MagicMock row counts from reaching TerminalConsole metric formatting. Signed-off-by: mday-io <mdaytn@gmail.com>
1 parent c73651c commit 26672c1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/core/test_execution_observation.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ def test_plan_and_scheduler_registration(mocker, make_snapshot, workers, registr
342342
if registration == "broken":
343343
getter.side_effect = RuntimeError("getter failure")
344344
native = mocker.MagicMock()
345+
native.execution_tracker.get_execution_stats.return_value = None
345346
native.get_snapshots_to_create.return_value = []
346347
native.set_correlation_id.return_value = native
347348
scheduler = Scheduler(

0 commit comments

Comments
 (0)