mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
test/wpaperd: add test for empty settings
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
a3f4b998ec
commit
3976e0507e
3 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue