mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-05 17:28:21 +00:00
style: apply the formatter to this session's new lookup and tests
Line reflow only, written by the autoformat step after the files were committed. No semantic change.
This commit is contained in:
3 files changed
+5
-6
No files matched your search
@@ -57,9 +57,7 @@ class LookupModule(LookupBase):
|
||||
applications = lookup_loader.get(
|
||||
"applications", loader=self._loader, templar=templar
|
||||
).run([], variables=vars_)[0]
|
||||
objstore = lookup_loader.get(
|
||||
"objstore", loader=self._loader, templar=templar
|
||||
)
|
||||
objstore = lookup_loader.get("objstore", loader=self._loader, templar=templar)
|
||||
|
||||
consumers: list[str] = []
|
||||
for group in group_names:
|
||||
|
||||
@@ -95,7 +95,9 @@ class TestInventoryOverrideConsumer(unittest.TestCase):
|
||||
_reset_cache_for_tests()
|
||||
variables = _variables({}, [cls.OVERRIDDEN, PROVIDER])
|
||||
variables["applications"] = {
|
||||
cls.OVERRIDDEN: {"services": {"seaweedfs": {"enabled": True, "shared": True}}}
|
||||
cls.OVERRIDDEN: {
|
||||
"services": {"seaweedfs": {"enabled": True, "shared": True}}
|
||||
}
|
||||
}
|
||||
applications = ApplicationsLookup()
|
||||
applications._templar = Templar(loader=DataLoader())
|
||||
|
||||
@@ -101,8 +101,7 @@ class TestIncludeTargetsResolve(unittest.TestCase):
|
||||
hits = _distinct_hits(target, roots)
|
||||
if not hits:
|
||||
searched = ", ".join(
|
||||
r.relative_to(PROJECT_ROOT).as_posix() or "."
|
||||
for r in roots
|
||||
r.relative_to(PROJECT_ROOT).as_posix() or "." for r in roots
|
||||
)
|
||||
findings.append(
|
||||
f"{rel}: '{target}' resolves to no file "
|
||||
|
||||
Reference in new issue
Block a user