39fa613890
CI / push-validation (pull_request) Successful in 28s
CI / helm (pull_request) Successful in 35s
CI / build (pull_request) Successful in 54s
CI / lint (pull_request) Failing after 1m9s
CI / quality (pull_request) Successful in 1m27s
CI / typecheck (pull_request) Successful in 1m34s
CI / security (pull_request) Successful in 1m52s
CI / coverage (pull_request) Has been skipped
CI / e2e_tests (pull_request) Successful in 4m17s
CI / integration_tests (pull_request) Successful in 4m50s
CI / unit_tests (pull_request) Failing after 6m6s
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 3s
- Fix AmbiguousStep conflict: rename documentation_steps.py step patterns from generic 'it should contain {text}' to 'the documentation should contain {text}' to avoid collision with k8s_helm_chart_steps.py and other step files
- Fix execution_environment.feature: update remaining 'it should contain' steps to 'the container types should contain' for consistency with line 132
- Add features/align_documentation.feature: Behave tests for the documentation changes using the new documentation-scoped step patterns
- Update docs/reference/skeleton_compressor.md: add DepthReductionCompressor references, correct module path (acms_skeleton_compressor), add v3.5.0 milestone
- Update docs/reference/di.md: add Skeleton Compressor Resolution section with resolve_configured_skeleton_compressor() and DepthReductionCompressor docs
- Update docs/reference/devcontainer_resources.md: add v3.6.0 named configuration scanning section, document config_name attribute, update discovery module docs
40 lines
1.5 KiB
Python
40 lines
1.5 KiB
Python
"""Step definitions for documentation alignment tests."""
|
|
|
|
from pathlib import Path
|
|
|
|
from behave import given, then, when
|
|
|
|
|
|
@given("the {filename} documentation file exists")
|
|
def step_doc_file_exists(context: object, filename: str) -> None:
|
|
"""Check that a documentation file exists."""
|
|
context.doc_path = Path(__file__).parent.parent.parent / "docs" / "reference" / filename
|
|
assert context.doc_path.exists(), f"Documentation file not found: {context.doc_path}"
|
|
|
|
|
|
@when("I read the {filename} documentation file")
|
|
def step_read_doc_file(context: object, filename: str) -> None:
|
|
"""Read a documentation file."""
|
|
context.doc_path = Path(__file__).parent.parent.parent / "docs" / "reference" / filename
|
|
context.doc_content = context.doc_path.read_text(encoding="utf-8")
|
|
|
|
|
|
@then("the documentation should contain {text}")
|
|
def step_should_contain(context: object, text: str) -> None:
|
|
"""Check that documentation contains specific text."""
|
|
# Remove quotes from the text parameter
|
|
search_text = text.strip('"\'')
|
|
assert search_text in context.doc_content, (
|
|
f"Expected text not found in documentation: {search_text}"
|
|
)
|
|
|
|
|
|
@then("the documentation should not contain {text}")
|
|
def step_should_not_contain(context: object, text: str) -> None:
|
|
"""Check that documentation does not contain specific text."""
|
|
# Remove quotes from the text parameter
|
|
search_text = text.strip('"\'')
|
|
assert search_text not in context.doc_content, (
|
|
f"Unexpected text found in documentation: {search_text}"
|
|
)
|