fix(tests/modules): list_modules returns moduleSets"
This commit is contained in:
@@ -45,7 +45,7 @@ let
|
||||
inherit inventory directory;
|
||||
flakeInputs = config.self.inputs;
|
||||
prefix = config._prefix ++ [ "inventoryClass" ];
|
||||
localModuleSet = config.self.clan.modules;
|
||||
localModuleSet = config.modules;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -27,10 +27,8 @@ def test_list_modules(test_flake_with_core: FlakeForTest) -> None:
|
||||
base_path = test_flake_with_core.path
|
||||
modules_info = list_modules(str(base_path))
|
||||
|
||||
assert len(modules_info.items()) > 1
|
||||
# Random test for those two modules
|
||||
assert "borgbackup" in modules_info
|
||||
assert "syncthing" in modules_info
|
||||
assert "localModules" in modules_info
|
||||
assert "modulesPerSource" in modules_info
|
||||
|
||||
|
||||
@pytest.mark.impure
|
||||
|
||||
Reference in New Issue
Block a user