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 1010from libtmux .test import TEST_SESSION_PREFIX , get_test_session_name , namer
1111
1212logger = logging .getLogger (__name__ )
13+ USING_ZSH = "zsh" in os .getenv ("SHELL" , "" )
1314
1415
1516@pytest .fixture (autouse = True , scope = "session" )
@@ -24,6 +25,18 @@ def user_path(home_path: pathlib.Path):
2425 return p
2526
2627
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+
2740@pytest .fixture (autouse = True )
2841def home_path_default (user_path : pathlib .Path ):
2942 os .environ ["HOME" ] = str (user_path )
You can’t perform that action at this time.
0 commit comments