Skip to content

Commit f48e9fd

Browse files
Marcus Rübclaude
authored andcommitted
fix(tests): set BOARDSMITH_VERBOSE for progress stderr test
The semantic agent only emits progress to stderr when BOARDSMITH_VERBOSE is set. The test was asserting progress without setting the env var. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fa5fea2 commit f48e9fd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/agent/test_semantic_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,9 @@ def _boom():
311311
assert result.cap_hit is True
312312
assert any("tool crashed" in v.get("message", "") for v in result.violations)
313313

314-
def test_progress_written_to_stderr(self, capsys):
315-
"""Progress 'Semantic iteration N/max' is written to stderr each iteration."""
314+
def test_progress_written_to_stderr(self, capsys, monkeypatch):
315+
"""Progress 'Semantic iteration N/max' is written to stderr when BOARDSMITH_VERBOSE is set."""
316+
monkeypatch.setenv("BOARDSMITH_VERBOSE", "1")
316317
agent = _make_agent([
317318
[MISSING_COMP],
318319
[], # clean after 1 iteration

0 commit comments

Comments
 (0)