Skip to content

Commit 6f6ff11

Browse files
committed
test: add integration test for zsh bootstrap behavior with non-zero rc return
1 parent f40a859 commit 6f6ff11

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_shellflow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
from typing import Any
1414
from unittest import mock
1515

16+
import os
1617
import pytest
1718
from hypothesis import given
1819
from hypothesis import strategies as st
1920

21+
ZSH_AVAILABLE = os.path.exists("/bin/zsh")
22+
2023
from shellflow import (
2124
VALID_EXPORT_SOURCES,
2225
Block,
@@ -833,6 +836,7 @@ def test_no_ssh_config_uses_manual_lookup(
833836
class 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"

0 commit comments

Comments
 (0)