mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 07:00:48 +00:00
9d53afb709
This adds a "test.asserts" module that currently just provides a convenient way to assert on the content of warnings. By default all tests will assert that no warnings are given.
26 lines
599 B
Nix
26 lines
599 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
config = {
|
|
programs.lieer.enable = true;
|
|
|
|
accounts.email.accounts."hm@example.com" = {
|
|
lieer.enable = true;
|
|
notmuch.enable = true;
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: { gmailieer = pkgs.writeScriptBin "dummy-gmailieer" ""; })
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/Mail/hm@example.com/.gmailieer.json
|
|
assertFileContent home-files/Mail/hm@example.com/.gmailieer.json \
|
|
${./lieer-expected.json}
|
|
'';
|
|
};
|
|
}
|