mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
Test unset extraInputsFlake
This commit is contained in:
parent
78bf03cea3
commit
5766ecf987
1 changed files with 13 additions and 0 deletions
|
@ -158,6 +158,17 @@ rec {
|
|||
flake.foo = true;
|
||||
});
|
||||
|
||||
partitionWithoutExtraInputsFlake = mkFlake
|
||||
{
|
||||
inputs.self = { };
|
||||
}
|
||||
({ config, ... }: {
|
||||
imports = [ flake-parts.flakeModules.partitions ];
|
||||
systems = [ "x86_64-linux" ];
|
||||
partitions.dev.module = { inputs, ... }: builtins.seq inputs { };
|
||||
partitionedAttrs.devShells = "dev";
|
||||
});
|
||||
|
||||
runTests = ok:
|
||||
|
||||
assert empty == {
|
||||
|
@ -242,6 +253,8 @@ rec {
|
|||
|
||||
assert specialArgFlake.foo;
|
||||
|
||||
assert builtins.isAttrs partitionWithoutExtraInputsFlake.devShells.x86_64-linux;
|
||||
|
||||
ok;
|
||||
|
||||
result = runTests "ok";
|
||||
|
|
Loading…
Reference in a new issue