Skip to content

Commit 64556e3

Browse files
authored
Fix tests on local environments (#682)
1 parent 3f88649 commit 64556e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ def test_tmuxp_configdir_xdg_config_dir(tmpdir, monkeypatch):
148148

149149
def test_resolve_dot(tmpdir, homedir, configdir, projectdir, monkeypatch):
150150
monkeypatch.setenv('HOME', str(homedir))
151+
monkeypatch.setenv("XDG_CONFIG_HOME", str(homedir.join('.config')))
152+
151153
projectdir.join('.tmuxp.yaml').ensure()
152154
user_config_name = 'myconfig'
153155
user_config = configdir.join('%s.yaml' % user_config_name).ensure()
@@ -966,6 +968,7 @@ def check_cmd(config_arg):
966968

967969
def test_ls_cli(monkeypatch, tmpdir):
968970
monkeypatch.setenv("HOME", str(tmpdir))
971+
monkeypatch.setenv("XDG_CONFIG_HOME", str(tmpdir.join('.config')))
969972

970973
filenames = [
971974
'.git/',

0 commit comments

Comments
 (0)