checks: mock self.inputs.self by default

This commit is contained in:
Johannes Kirschbauer
2025-07-01 09:32:26 +02:00
parent e260168a6b
commit afd1ba6306
3 changed files with 8 additions and 2 deletions

View File

@@ -149,6 +149,14 @@ in
modules = [
clan-core.modules.clan.default
{
self = {
inputs = {
# Simulate flake: 'self.inputs.self'
# Needed because local modules are imported from inputs.self
self = config;
set_inputs_in_tests_fixture_warning = throw "'self.inputs' within test needs to be set manually. Set 'clan.self.inputs' to mock inputs=`{}`";
};
};
_prefix = [
"checks"
"<system>"