@@ -51,7 +51,7 @@ def no_git_dir(tmp_path: Path) -> Path:
5151 return tmp_path
5252
5353
54- def run_script (cwd : Path , * args : str , capture_stderr : bool = False ) -> subprocess .CompletedProcess :
54+ def run_script (cwd : Path , * args : str ) -> subprocess .CompletedProcess :
5555 """Run create-new-feature.sh with given args."""
5656 cmd = ["bash" , "scripts/bash/create-new-feature.sh" , * args ]
5757 return subprocess .run (
@@ -91,6 +91,7 @@ def test_timestamp_creates_branch(self, git_repo: Path):
9191 def test_number_and_timestamp_warns (self , git_repo : Path ):
9292 """Test 3: --number + --timestamp warns and uses timestamp."""
9393 result = run_script (git_repo , "--timestamp" , "--number" , "42" , "--short-name" , "feat" , "Feature" )
94+ assert result .returncode == 0 , result .stderr
9495 assert "Warning" in result .stderr and "--number" in result .stderr
9596
9697 def test_json_output_keys (self , git_repo : Path ):
@@ -209,6 +210,7 @@ class TestNoGitTimestamp:
209210 def test_no_git_timestamp (self , no_git_dir : Path ):
210211 """Test 13: No-git repo + timestamp creates spec dir with warning."""
211212 result = run_script (no_git_dir , "--timestamp" , "--short-name" , "no-git-feat" , "No git feature" )
213+ assert result .returncode == 0 , result .stderr
212214 spec_dirs = list ((no_git_dir / "specs" ).iterdir ()) if (no_git_dir / "specs" ).exists () else []
213215 assert len (spec_dirs ) > 0 , "spec dir not created"
214216 assert "git" in result .stderr .lower () or "warning" in result .stderr .lower ()
0 commit comments