goimapnotify: remove test dependency on notmuch

Also minor test cleanup.
This commit is contained in:
Robert Helgesson 2023-07-08 09:57:38 +02:00
parent 34db2f0521
commit f288310b7a
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -5,7 +5,6 @@ with lib;
{
imports = [ ../../accounts/email-test-accounts.nix ];
config = {
accounts.email.accounts = {
"hm@example.com" = {
notmuch.enable = true;
@ -29,13 +28,13 @@ with lib;
});
};
test.stubs.notmuch = { };
nmt.script = let
serviceFileName =
"org.nix-community.home.imapnotify-hm-example.com.plist";
serviceFileName = "org.nix-community.home.imapnotify-hm-example.com.plist";
in ''
serviceFile=LaunchAgents/${serviceFileName}
assertFileExists $serviceFile
assertFileContent $serviceFile ${./launchd.plist}
'';
};
}