mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-03 12:09:19 +00:00
tests: add option test.stubs
This option provides a more convenient way to overlay dummy packages. It also adds a function `config.lib.test.mkStubPackage` that can, e.g., be used for `package` options.
This commit is contained in:
@@ -17,8 +17,7 @@
|
||||
prev_img = [ "h" "Left" ];
|
||||
};
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { feh = pkgs.writeScriptBin "dummy-feh" ""; }) ];
|
||||
test.stubs.feh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
config = {
|
||||
programs.feh.enable = true;
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { feh = pkgs.writeScriptBin "dummy-feh" ""; }) ];
|
||||
test.stubs.feh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/feh/buttons
|
||||
|
||||
Reference in New Issue
Block a user