chore: format test, remove unused attributes
This commit is contained in:
@@ -5,14 +5,6 @@
|
|||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
evalModules
|
evalModules
|
||||||
mkOption
|
|
||||||
types
|
|
||||||
;
|
|
||||||
|
|
||||||
inherit (types)
|
|
||||||
submodule
|
|
||||||
attrsOf
|
|
||||||
str
|
|
||||||
;
|
;
|
||||||
|
|
||||||
evalInventory =
|
evalInventory =
|
||||||
@@ -28,13 +20,22 @@ let
|
|||||||
];
|
];
|
||||||
}).config;
|
}).config;
|
||||||
|
|
||||||
flakeFixture = { inputs = {}; };
|
flakeFixture = {
|
||||||
|
inputs = { };
|
||||||
|
};
|
||||||
|
|
||||||
callInventoryAdapter = inventoryModule: import ../inventory-adapter.nix { inherit lib; flake = flakeFixture; inventory = evalInventory inventoryModule; };
|
callInventoryAdapter =
|
||||||
|
inventoryModule:
|
||||||
|
import ../inventory-adapter.nix {
|
||||||
|
inherit lib;
|
||||||
|
flake = flakeFixture;
|
||||||
|
inventory = evalInventory inventoryModule;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
test_simple =
|
test_simple =
|
||||||
let res = callInventoryAdapter {
|
let
|
||||||
|
res = callInventoryAdapter {
|
||||||
# Authored module
|
# Authored module
|
||||||
# A minimal module looks like this
|
# A minimal module looks like this
|
||||||
# It isn't exactly doing anything but it's a valid module that produces an output
|
# It isn't exactly doing anything but it's a valid module that produces an output
|
||||||
|
|||||||
Reference in New Issue
Block a user