Orchestrata Ultimate › Tests › Reference › scripts › test_doc_lint
Tests reference — tests/scripts/test_doc_lint.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_doc_lint.py
source · 38 tests · 475 lines
Tests for scripts/doc_lint.py — the doc-truth lint that catches
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_stale_infra_ip_fires |
63 | |
| function | test_stale_infra_swiplserver_and_mqi_fire |
73 | |
| function | test_stale_infra_gatekeeper_neo4j_fires |
86 | |
| function | test_stale_infra_no_match_is_clean |
95 | |
| function | test_stale_infra_keyword_exemption_works |
102 | A reconciliation-table row quoting an old value alongside an |
| function | test_stale_infra_each_exemption_keyword_works |
114 | |
| function | test_stale_infra_inline_allow_comment_same_line |
131 | |
| function | test_stale_infra_inline_allow_comment_preceding_line |
141 | |
| function | test_stale_infra_exemption_keyword_does_not_leak_into_next_line |
149 | The exemption only covers the matching line/row, not the whole file. |
| function | test_load_actual_test_count_reads_real_reports_file |
164 | The committed reports/run-tests-latest.json is real ground truth — |
| function | test_load_actual_test_count_reads_fixture |
172 | |
| function | test_test_count_claim_within_tolerance_does_not_fire |
180 | |
| function | test_test_count_claim_outside_tolerance_fires |
186 | |
| function | test_test_count_claim_against_zero_actual_fires_on_any_positive |
197 | |
| function | test_test_count_short_numbers_are_not_captured |
205 | Regex only fires on >=4-digit or comma-grouped counts — '5 tests' |
| function | test_container_ip_known_does_not_fire |
217 | |
| function | test_container_ip_unknown_fires |
224 | |
| function | test_container_ip_cidr_network_reference_does_not_fire |
233 | 10.53.1.0/24 names the SUBNET, not a container host — the regex |
| function | test_load_incus_ips_from_fixture_file |
243 | |
| function | test_load_incus_ips_from_live_incus_when_available |
249 | Real infra: if incus is on PATH, the live-incus path must parse its |
| function | test_load_incus_ips_missing_binary_is_unavailable |
262 | Real subprocess, real PATH with the incus directory stripped out — |
| function | test_load_incus_ips_missing_fixture_file_is_unavailable |
291 | |
| function | test_load_incus_ips_malformed_json_is_unavailable |
296 | |
| function | test_load_incus_ips_ipv6_and_stopped_containers_are_skipped |
301 | A stopped container (state=None) and ipv6-only addresses must not |
| function | test_iter_markdown_files_expands_directory_recursively |
325 | |
| function | test_iter_markdown_files_includes_direct_file_arg |
333 | |
| function | test_iter_markdown_files_missing_path_is_skipped |
339 | |
| function | test_lint_ground_truth_unavailable |
349 | |
| function | test_main_exit_2_when_ground_truth_unavailable |
356 | |
| function | test_main_warn_only_does_not_suppress_exit_2 |
371 | |
| function | test_main_exit_1_on_findings_without_warn_only |
385 | |
| function | test_main_warn_only_exits_0_despite_findings |
393 | |
| function | test_main_exit_0_when_clean |
404 | |
| function | test_main_summary_line_reports_exempt_and_file_count |
412 | |
| function | test_main_finding_line_format |
423 | |
| function | test_main_default_paths_scan_real_repo_docs |
433 | Running with no path args must fall back to docs/ + README.md, |
| function | test_cli_subprocess_warn_only_against_real_repo |
446 | |
| function | test_cli_subprocess_ground_truth_unavailable_exit_code |
458 |