Skip to content

Commit 6219ca5

Browse files
fix(tests): handle hyphenated library names in header check
1 parent 00d7d77 commit 6219ca5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/unit/prompts/test_prompts.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ def test_library_prompt_has_required_sections(self, filename: str) -> None:
114114
content = (LIBRARY_PROMPTS_DIR / filename).read_text()
115115
library_name = filename.replace(".md", "")
116116

117-
# Check for header
118-
assert f"# {library_name}" in content.lower(), f"Missing header for {library_name}"
117+
# Check for header (normalize by removing hyphens for comparison)
118+
content_normalized = content.lower().replace("-", "")
119+
assert f"# {library_name}" in content_normalized, f"Missing header for {library_name}"
119120

120121
# Check for import section
121122
assert "## Import" in content or "import" in content.lower(), f"Missing import section in {filename}"

0 commit comments

Comments
 (0)