mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
goimapnotify: remove test dependency on notmuch
Also minor test cleanup.
This commit is contained in:
parent
34db2f0521
commit
f288310b7a
1 changed files with 28 additions and 29 deletions
|
@ -5,7 +5,6 @@ with lib;
|
||||||
{
|
{
|
||||||
imports = [ ../../accounts/email-test-accounts.nix ];
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
||||||
|
|
||||||
config = {
|
|
||||||
accounts.email.accounts = {
|
accounts.email.accounts = {
|
||||||
"hm@example.com" = {
|
"hm@example.com" = {
|
||||||
notmuch.enable = true;
|
notmuch.enable = true;
|
||||||
|
@ -29,13 +28,13 @@ with lib;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
test.stubs.notmuch = { };
|
||||||
|
|
||||||
nmt.script = let
|
nmt.script = let
|
||||||
serviceFileName =
|
serviceFileName = "org.nix-community.home.imapnotify-hm-example.com.plist";
|
||||||
"org.nix-community.home.imapnotify-hm-example.com.plist";
|
|
||||||
in ''
|
in ''
|
||||||
serviceFile=LaunchAgents/${serviceFileName}
|
serviceFile=LaunchAgents/${serviceFileName}
|
||||||
assertFileExists $serviceFile
|
assertFileExists $serviceFile
|
||||||
assertFileContent $serviceFile ${./launchd.plist}
|
assertFileContent $serviceFile ${./launchd.plist}
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue