@@ -92,8 +92,8 @@ def _clean_env() -> dict[str, str]:
9292 if key .startswith ("SPECIFY_" ):
9393 env .pop (key )
9494 return env
95-
96-
95+
96+
9797def _run_bash_format_command (repo : Path , command_name : str ) -> subprocess .CompletedProcess :
9898 script = repo / ".specify" / "scripts" / "bash" / "common.sh"
9999 return subprocess .run (
@@ -400,12 +400,12 @@ def test_setup_tasks_bash_missing_template_errors(tasks_repo: Path) -> None:
400400 check = False ,
401401 env = _clean_env (),
402402 )
403-
403+
404404 assert result .returncode != 0
405405 assert "ERROR" in result .stderr
406406 assert "tasks-template" in result .stderr
407-
408-
407+
408+
409409@requires_bash
410410def test_bash_command_hint_defaults_to_dot_without_integration_json (tasks_repo : Path ) -> None :
411411 integration_json = tasks_repo / ".specify" / "integration.json"
@@ -587,6 +587,8 @@ def test_setup_tasks_bash_fails_custom_branch_without_feature_json(
587587
588588 assert result .returncode != 0
589589 assert "Not on a feature branch" in result .stderr
590+
591+
590592# ===========================================================================
591593# POWERSHELL TESTS
592594# ===========================================================================
@@ -681,8 +683,8 @@ def test_setup_tasks_ps_missing_template_errors(tasks_repo: Path) -> None:
681683
682684 assert result .returncode != 0
683685 assert "tasks-template" in result .stderr .lower () or "tasks-template" in result .stdout .lower ()
684-
685-
686+
687+
686688@pytest .mark .skipif (not (HAS_PWSH or _POWERSHELL ), reason = "no PowerShell available" )
687689def test_powershell_command_hint_normalizes_mixed_separators (
688690 tasks_repo : Path ,
@@ -819,3 +821,4 @@ def test_setup_tasks_ps_fails_custom_branch_without_feature_json(
819821
820822 assert result .returncode != 0
821823 assert "Not on a feature branch" in result .stderr
824+
0 commit comments