[core] Match the bad candidate by file name so the test passes on Windows

This commit is contained in:
J. Nick Koston
2026-10-07 23:03:28 -10:00
parent e1b5804036
commit 038feaa95a
+1 -1
View File
@@ -1647,7 +1647,7 @@ def test_discover_user_yaml_files_bad_candidate_still_tracked(
r.levelname for r in caplog.records if "Failed to load candidate" in r.message
]
assert matching == ["DEBUG"]
assert any("keys/bad.yaml" in e for e in discovered.load_errors)
assert any("bad.yaml" in e for e in discovered.load_errors)
def test_discover_user_yaml_files_tolerates_templated_top_level_include(