wrapper-manager-fds/tests: update test for env subset

This commit is contained in:
Gabriel Arazas 2024-07-08 21:13:32 +08:00
parent 28dfaefc20
commit 4caaca3b71

View File

@ -1,6 +1,32 @@
{ pkgs, lib, self }: { pkgs, lib, self }:
lib.runTests { lib.runTests {
testsEvaluateSampleConfiguration = {
expr =
let
sampleConf = self.env.eval {
inherit pkgs;
modules = [ ./wrapper-neofetch.nix ];
specialArgs.yourMomName = "Joe Mama";
};
in
lib.isDerivation sampleConf.config.build.toplevel;
expected = true;
};
testsEvaluateSampleConfiguration2 = {
expr =
let
sampleConf = self.env.eval {
inherit pkgs;
modules = [ ./wrapper-fastfetch.nix ];
specialArgs.yourMomName = "Joe Mama";
};
in
lib.isDerivation sampleConf.config.build.toplevel;
expected = true;
};
testsBuildSampleConfiguration = { testsBuildSampleConfiguration = {
expr = expr =
let let