Orchestrata Ultimate › Tests › Reference › scripts › test_check_requirement_corpus_main
Tests reference — tests/scripts/test_check_requirement_corpus_main.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_check_requirement_corpus_main.py
source · 14 tests · 307 lines
Tests for scripts/check_requirement_corpus.py — main(), advisories, error paths.
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestMainExitCodes |
112 | |
| method | TestMainExitCodes.test_main_reports_violations_and_exits_1 |
113 | |
| method | TestMainExitCodes.test_main_collapses_more_than_six_dangling_ids |
128 | The violation line shows 6 ids and summarizes the rest — 29 full |
| method | TestMainExitCodes.test_main_reports_INVALID_and_exits_2_on_an_empty_repo |
146 | |
| method | TestMainExitCodes.test_main_reports_INVALID_when_nothing_is_cited |
156 | Requirements exist but src/ cites none — the second operand of the |
| method | TestMainExitCodes.test_main_passes_and_exits_0_on_a_clean_repo |
169 | |
| method | TestMainExitCodes.test_main_advisories_flag_prints_drift_but_still_passes |
187 | Documentation drift is an ADVISORY: printed under --advisories, |
| method | TestMainExitCodes.test_main_without_the_flag_prints_no_advisories |
211 | |
| class | TestChecklistAdvisories |
228 | |
| method | TestChecklistAdvisories.test_no_specs_dir_means_no_advisories |
229 | |
| method | TestChecklistAdvisories.test_not_specs_directories_are_skipped |
232 | codegen/ and spec-review/ live under specs/ but are not specs. |
| method | TestChecklistAdvisories.test_a_spec_without_both_files_is_skipped |
244 | Drift is only defined when both shapes exist to compare. |
| method | TestChecklistAdvisories.test_an_undecodable_spec_file_is_skipped |
251 | |
| method | TestChecklistAdvisories.test_more_than_six_missing_ids_are_collapsed |
257 | |
| method | TestChecklistAdvisories.test_advisories_are_sorted_and_ignore_plain_files |
274 | A stray file directly under specs/ is not a spec dir. |
| class | TestCollectDecodeFailures |
295 | |
| method | TestCollectDecodeFailures.test_an_undecodable_requirement_source_is_skipped |
296 | A source that cannot be decoded defines nothing, but the rest of |