Feat: modularie user and dotfiles

This commit is contained in:
2022-01-12 06:06:12 +01:00
parent 5ffb1dbfa8
commit e346a61ced
7 changed files with 119 additions and 25 deletions

View File

@@ -37,3 +37,12 @@ def test_clone_dotfiles(host):
dotfiles = host.file(admin.home + "/.dotfiles")
assert dotfiles.exists
assert dotfiles.user == admin.name
def test_stow_config(host):
user = host.user("user")
nvim_config = host.files(user.home + "/.config/nvim/")
assert nvim_config.exists
admin = host.user("admin")
nvim_config = host.files(admin.home + "/.config/nvim/")
assert not nvim_config.exists