We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e19a9b commit 5424ecdCopy full SHA for 5424ecd
tests/conftest.py
@@ -10,6 +10,7 @@
10
from libtmux.test import TEST_SESSION_PREFIX, get_test_session_name, namer
11
12
logger = logging.getLogger(__name__)
13
+USING_ZSH = "zsh" in os.getenv("SHELL", "")
14
15
16
@pytest.fixture(autouse=True, scope="session")
@@ -24,6 +25,18 @@ def user_path(home_path: pathlib.Path):
24
25
return p
26
27
28
+@pytest.mark.skipif(USING_ZSH, reason="Using ZSH")
29
+@pytest.fixture(autouse=USING_ZSH, scope="session")
30
+def zshrc(user_path: pathlib.Path):
31
+ """This quiets ZSH default message.
32
+
33
+ Needs a startup file .zshenv, .zprofile, .zshrc, .zlogin.
34
+ """
35
+ p = user_path / ".zshrc"
36
+ p.touch()
37
+ return p
38
39
40
@pytest.fixture(autouse=True)
41
def home_path_default(user_path: pathlib.Path):
42
os.environ["HOME"] = str(user_path)
0 commit comments