Skip to content

Commit efcf283

Browse files
Trecekclaude
andcommitted
fix(review): include file paths in registry constant premise-broken assertion
Makes the "No registry constants found" assertion diagnostic message include the actual constants_files list so failures caused by pkg_root() misresolution or file renames include actionable path information. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ac709a2 commit efcf283

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/arch/test_canonical_constant_consumption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_registry_constants_have_production_consumer() -> None:
118118
for name in _find_registry_constants(cf):
119119
all_constants.append((name, cf))
120120

121-
assert all_constants, "No registry constants found — test premise broken"
121+
assert all_constants, f"No registry constants found in {constants_files} — test premise broken"
122122

123123
unconsumed = []
124124
for name, def_file in all_constants:

0 commit comments

Comments
 (0)