mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
git: stub test dependency on msmtp
This commit is contained in:
parent
0f72441821
commit
78afc2fa74
1 changed files with 3 additions and 6 deletions
|
@ -16,6 +16,8 @@ with lib;
|
||||||
|
|
||||||
home.stateVersion = "20.09";
|
home.stateVersion = "20.09";
|
||||||
|
|
||||||
|
test.stubs.msmtp = { };
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
function assertGitConfig() {
|
function assertGitConfig() {
|
||||||
local value
|
local value
|
||||||
|
@ -29,12 +31,7 @@ with lib;
|
||||||
|
|
||||||
assertFileExists home-files/.config/git/config
|
assertFileExists home-files/.config/git/config
|
||||||
assertFileContent home-files/.config/git/config \
|
assertFileContent home-files/.config/git/config \
|
||||||
${
|
${./git-with-msmtp-expected.conf}
|
||||||
pkgs.substituteAll {
|
|
||||||
inherit (pkgs) msmtp;
|
|
||||||
src = ./git-with-msmtp-expected.conf;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
assertGitConfig "sendemail.hm@example.com.from" "hm@example.com"
|
assertGitConfig "sendemail.hm@example.com.from" "hm@example.com"
|
||||||
assertGitConfig "sendemail.hm-account.from" "hm@example.org"
|
assertGitConfig "sendemail.hm-account.from" "hm@example.org"
|
||||||
|
|
Loading…
Reference in a new issue