git: stub test dependency on msmtp

This commit is contained in:
Robert Helgesson 2021-10-30 20:35:50 +02:00
parent 0f72441821
commit 78afc2fa74
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 3 additions and 6 deletions

View File

@ -16,6 +16,8 @@ with lib;
home.stateVersion = "20.09";
test.stubs.msmtp = { };
nmt.script = ''
function assertGitConfig() {
local value
@ -29,12 +31,7 @@ with lib;
assertFileExists home-files/.config/git/config
assertFileContent home-files/.config/git/config \
${
pkgs.substituteAll {
inherit (pkgs) msmtp;
src = ./git-with-msmtp-expected.conf;
}
}
${./git-with-msmtp-expected.conf}
assertGitConfig "sendemail.hm@example.com.from" "hm@example.com"
assertGitConfig "sendemail.hm-account.from" "hm@example.org"