Skip to content

Commit 4d9ac27

Browse files
fix: Handle line-wrapping in update_config test
Normalizes output by removing newlines before checking for file names, fixing CI failures caused by terminal width differences. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3ed037f commit 4d9ac27

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/unit/test_update_config_cmd.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,7 @@ def test_update_config_mcp_both_files_exist(self, tmp_path, monkeypatch):
120120
runner = CliRunner()
121121
with patch("memdocs.cli_modules.commands.update_config_cmd._setup_mcp_infrastructure"):
122122
result = runner.invoke(update_config, ["--mcp"], input="n\n")
123-
assert "tasks.json" in result.output
124-
assert "settings.json" in result.output
123+
# Normalize output by removing newlines to handle line-wrapping in CI
124+
normalized_output = result.output.replace("\n", "")
125+
assert "tasks.json" in normalized_output
126+
assert "settings.json" in normalized_output

0 commit comments

Comments
 (0)