justinmclean commented on code in PR #215:
URL: https://github.com/apache/airflow-steward/pull/215#discussion_r3295859528
##########
tools/skill-validator/tests/test_validator.py:
##########
@@ -176,6 +184,26 @@ def test_mode_optional(self, tmp_path: Path) -> None:
violations = list(validate_frontmatter(path, text))
assert violations == []
+ def test_mode_taxonomy_matches_docs_modes(self) -> None:
+ docs_modes = Path(__file__).parents[3] / "docs" / "modes.md"
+ modes_table = (
+ docs_modes.read_text(encoding="utf-8")
+ .split("## Modes at a glance", 1)[1]
+ .split("## Triage", 1)[0]
+ )
Review Comment:
Intentional. parents[3] keeps the locator dead-simple and independent; if
the layout changes the test fails loudly and it's a one-line fix. Leaving as-is.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]