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:
parent
b0651cc217
commit
cb09a968e9
159 changed files with 753 additions and 981 deletions
|
|
@ -75,8 +75,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { lf = pkgs.writeScriptBin "dummy-lf" ""; }) ];
|
||||
test.stubs.lf = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/lf/lfrc
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ in {
|
|||
config = {
|
||||
programs.lf = { enable = true; };
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { lf = pkgs.writeScriptBin "dummy-lf" ""; }) ];
|
||||
test.stubs.lf = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/lf/lfrc
|
||||
|
|
|
|||
|
|
@ -32,8 +32,7 @@ in {
|
|||
previewer = { source = pvScript; };
|
||||
};
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { lf = pkgs.writeScriptBin "dummy-lf" ""; }) ];
|
||||
test.stubs.lf = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/lf/lfrc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue