mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 17:19:45 +01:00
ef4370bedc
By default tests are expected to produce no assertion. This also updates the existing tests to match.
25 lines
559 B
Nix
25 lines
559 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
programs.mpv = {
|
|
enable = true;
|
|
package = pkgs.mpvDummy;
|
|
scripts = [ pkgs.mpvScript ];
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
mpvDummy = pkgs.runCommandLocal "mpv" { } "mkdir $out";
|
|
mpvScript =
|
|
pkgs.runCommandLocal "mpvScript" { scriptName = "something"; }
|
|
"mkdir $out";
|
|
})
|
|
];
|
|
|
|
test.asserts.assertions.expected = [
|
|
''
|
|
The programs.mpv "package" option is mutually exclusive with "scripts" option.''
|
|
];
|
|
};
|
|
}
|