chore: format test, remove unused attributes

This commit is contained in:
Johannes Kirschbauer
2025-03-29 14:27:52 +01:00
parent f4e06271ba
commit 19341e4cb1

View File

@@ -5,14 +5,6 @@
let
inherit (lib)
evalModules
mkOption
types
;
inherit (types)
submodule
attrsOf
str
;
evalInventory =
@@ -28,13 +20,22 @@ let
];
}).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
{
test_simple =
let res = callInventoryAdapter {
let
res = callInventoryAdapter {
# Authored module
# A minimal module looks like this
# It isn't exactly doing anything but it's a valid module that produces an output