pkgs-lib: Make tests independent of Nix file contents (#382880)

This commit is contained in:
h7x4
2025-02-24 11:36:43 +01:00
committed by GitHub
2 changed files with 6 additions and 6 deletions
+6 -6
View File
@@ -96,7 +96,7 @@ in runBuildTests {
str = "foo";
attrs.foo = null;
list = [ null null ];
path = ./formats.nix;
path = ./testfile;
};
expected = ''
{
@@ -111,7 +111,7 @@ in runBuildTests {
null
],
"null": null,
"path": "${./formats.nix}",
"path": "${./testfile}",
"str": "foo",
"true": true
}
@@ -128,7 +128,7 @@ in runBuildTests {
str = "foo";
attrs.foo = null;
list = [ null null ];
path = ./formats.nix;
path = ./testfile;
no = "no";
time = "22:30:00";
};
@@ -142,7 +142,7 @@ in runBuildTests {
- null
'no': 'no'
'null': null
path: ${./formats.nix}
path: ${./testfile}
str: foo
time: '22:30:00'
'true': true
@@ -547,7 +547,7 @@ in runBuildTests {
1
null
];
path = ./formats.nix;
path = ./testfile;
};
expected = ''
attrs {
@@ -561,7 +561,7 @@ in runBuildTests {
null
]
"null": null
"path": "${./formats.nix}"
"path": "${./testfile}"
"str": "foo"
"true": true
'';
View File