File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 10
10
from libtmux .test import TEST_SESSION_PREFIX , get_test_session_name , namer
11
11
12
12
logger = logging .getLogger (__name__ )
13
+ USING_ZSH = "zsh" in os .getenv ("SHELL" , "" )
13
14
14
15
15
16
@pytest .fixture (autouse = True , scope = "session" )
@@ -24,6 +25,18 @@ def user_path(home_path: pathlib.Path):
24
25
return p
25
26
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
+
27
40
@pytest .fixture (autouse = True )
28
41
def home_path_default (user_path : pathlib .Path ):
29
42
os .environ ["HOME" ] = str (user_path )
You can’t perform that action at this time.
0 commit comments