From 865d57f7fa796a7b5c40062c27184fe49daddbf0 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Wed, 7 Oct 2026 21:01:51 -0700 Subject: [PATCH] Make the jq Carriage-Return Test Fail When Its Stub Is Not Reached The test's registry fixture said archived, so any real jq on PATH gave the same verdict as the stub, and the test passed whether or not the stub ran. The fixture now says cataloged, so only the stub's archived followed by a carriage return can stop the script there, which a run with the stub's PATH line removed confirms by failing. Closes #2513. Co-Authored-By: Claude Opus 5.5 --- tests/test_configure_archived.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_configure_archived.py b/tests/test_configure_archived.py index b0de6732f..31ec817b1 100755 --- a/tests/test_configure_archived.py +++ b/tests/test_configure_archived.py @@ -132,7 +132,7 @@ def test_a_trailing_carriage_return_from_jq_is_stripped(self) -> None: stub = bin_dir / "jq" stub.write_text("#!/bin/sh\nprintf 'archived\\r\\n'\n", encoding="utf-8") stub.chmod(0o755) - registry = self.registry(tmp, [{"name": "Fixture", "status": "archived"}]) + registry = self.registry(tmp, [{"name": "Fixture", "status": "cataloged"}]) script = ( f'PATH="$(cd {shlex.quote(str(bin_dir))} && pwd):$PATH"\n' f"registry={shlex.quote(str(registry))}\nname=Fixture\ncmd=check\nrepo=owner/Fixture\n"