def test_get_tmuxinator_dir(monkeypatch): assert cli.get_tmuxinator_dir() == os.path.expanduser('~/.tmuxinator/') monkeypatch.setenv('HOME', '/moo') assert cli.get_tmuxinator_dir() == '/moo/.tmuxinator/' assert cli.get_tmuxinator_dir() == os.path.expanduser('~/.tmuxinator/')
def test_get_tmuxinator_dir(monkeypatch): assert cli.get_tmuxinator_dir() == os.path.expanduser('~/.tmuxinator/') monkeypatch.setenv('HOME', '/moo') assert cli.get_tmuxinator_dir() == '/moo/.tmuxinator/' assert cli.get_tmuxinator_dir() == os.path.expanduser('~/.tmuxinator/')