Skip to content

Commit 651b46c

Browse files
Fix UTG issues (iteration 3)
1 parent 6b7cef3 commit 651b46c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_readme_validation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def readme_text() -> str:
2626
if p.exists():
2727
return _normalize(p.read_text(encoding="utf-8"))
2828
pytest.skip("README not found at repository root")
29+
return ""
2930

3031

3132
def _extract_code_blocks(md: str, lang: Optional[str] = None) -> List[str]:
@@ -44,7 +45,7 @@ def _extract_subsection(md: str, heading: str) -> Optional[str]:
4445

4546
def test_readme_exists(readme_text: str) -> None:
4647
assert isinstance(readme_text, str) and len(readme_text) > 50, "README should exist and be non-trivial"
47-
return
48+
return None
4849

4950

5051
def test_top_badges_present(readme_text: str) -> None:

0 commit comments

Comments
 (0)