File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313from typing import Any
1414from unittest import mock
1515
16+ import os
1617import pytest
1718from hypothesis import given
1819from hypothesis import strategies as st
1920
21+ ZSH_AVAILABLE = os .path .exists ("/bin/zsh" )
22+
2023from shellflow import (
2124 VALID_EXPORT_SOURCES ,
2225 Block ,
@@ -833,6 +836,7 @@ def test_no_ssh_config_uses_manual_lookup(
833836class TestShellBootstrapIntegration :
834837 """Integration-style tests for non-interactive shell bootstrap behavior."""
835838
839+ @pytest .mark .skipif (not ZSH_AVAILABLE , reason = "zsh not available" )
836840 def test_zsh_bootstrap_ignores_nonzero_zshrc_and_keeps_path_customizations (self , tmp_path : Path ) -> None :
837841 """Test guarded zshrc bootstrap still exposes commands after a non-zero rc return."""
838842 bin_dir = tmp_path / "bin"
You can’t perform that action at this time.
0 commit comments