Compare commits

...
Author SHA1 Message Date
praisonai-triage-agent[bot]andMervin Praison 1d2efd692d fix: narrow shell test normalization to CRLF only
Address Greptile feedback: use strip('\r\n') instead of strip() so the
assertion still catches unrelated leading/trailing whitespace regressions
while remaining Windows line-ending tolerant.

Co-authored-by: Mervin Praison <[email protected]>
2026-08-20 08:13:11 +00:00
@@ -283,7 +283,7 @@ class TestShellSubstitution:
CustomDefinitionsDiscovery, '_find_project_dirs', return_value=[Path(tmpdir)]
), patch.dict("os.environ", {SHELL_SUBSTITUTION_ENV: "true"}):
result = interpolate_command_template("diff")
assert result.strip() == "Output: hi"
assert result.strip("\r\n") == "Output: hi"
def test_frontmatter_allow_shell_enables(self):
@@ -407,7 +407,7 @@ class TestShellSubstitution:
_os.environ.pop(SHELL_SUBSTITUTION_ENV, None)
assert _config_allows_shell() is True
result = interpolate_command_template("diff")
assert result.strip() == "Output: hi"
assert result.strip("\r\n") == "Output: hi"
class TestIntegrationFunctions: