From 840836702d693b59a2c348106fe03372d7f4fca1 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 13 Jul 2025 17:19:12 +0200 Subject: [PATCH] Ignored .py .sh --- tests/integration/test_get_app_conf_paths.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_get_app_conf_paths.py b/tests/integration/test_get_app_conf_paths.py index d742279a..684f0fde 100644 --- a/tests/integration/test_get_app_conf_paths.py +++ b/tests/integration/test_get_app_conf_paths.py @@ -56,6 +56,8 @@ class TestGetAppConfPaths(unittest.TestCase): if 'tests' in Path(dirpath).parts: continue for fname in files: + if fname.endswith(('.py', '.sh')): + continue file_path = Path(dirpath) / fname try: text = file_path.read_text(encoding='utf-8') @@ -108,9 +110,13 @@ class TestGetAppConfPaths(unittest.TestCase): continue # users.*: default_users fallback if dotted.startswith('users.'): - sub = dotted.split('.',1)[1] - if sub in self.defaults_users: + subpath = dotted.split('.', 1)[1] + try: + # this will raise if the nested key doesn’t exist + self.assertNested(self.defaults_users, subpath, 'default_users') continue + except AssertionError: + pass # application defaults for aid, cfg in self.defaults_app.items(): try: