mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
test/wpaperd: add test for empty settings
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
wpaperd-no-settings = ./wpaperd-no-settings.nix;
|
||||
wpaperd-example-settings = ./wpaperd-example-settings.nix;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/wpaperd/wallpaper.toml
|
||||
assertFileContent home-files/.config/wpaperd/wallpaper.toml \
|
||||
${./wpaperd-expected-settings.toml}
|
||||
'';
|
||||
|
||||
9
tests/modules/services/wpaperd/wpaperd-no-settings.nix
Normal file
9
tests/modules/services/wpaperd/wpaperd-no-settings.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
services.wpaperd = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/wpaperd/wallpaper.toml
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user