Orchestrata Ultimate › Tests › Reference › scripts › test_check_ai_attribution
Tests reference — tests/scripts/test_check_ai_attribution.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_check_ai_attribution.py
source · 26 tests · 421 lines
Tests for scripts/check_ai_attribution.py — the RUL-007 AI-attribution gate.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_scan_text_flags_every_violation |
133 | |
| function | test_scan_text_is_silent_on_clean_history |
140 | |
| function | test_scan_text_reports_the_exact_line_number |
144 | |
| function | test_scan_text_flags_each_violating_line_once |
153 | |
| function | test_ruling_text_and_rule_id_are_present_for_rulings_lint |
159 | rulings_lint's gate <script> RUL-007 grammar reads the script text. |
| function | test_verbose_diff_below_the_scissors_is_never_scanned |
170 | commit.verbose puts the DIFF in the message file. Scanning it would |
| function | test_git_comment_lines_are_ignored_but_numbering_is_preserved |
187 | |
| function | test_stdin_does_not_strip_markdown_headings |
198 | PR bodies are markdown: # starts a heading, not a git comment. |
| function | test_message_file_mode_exits_non_zero_on_the_planted_violation |
210 | |
| function | test_message_file_mode_exits_zero_on_a_clean_message |
223 | |
| function | test_a_real_commit_msg_hook_refuses_the_commit |
231 | End-to-end proof of the ratified wiring: a real commit-msg hook that |
| function | test_range_mode_flags_a_violating_commit |
273 | |
| function | test_range_mode_passes_on_clean_history |
281 | |
| function | test_baselined_commit_is_reported_but_does_not_fail |
290 | |
| function | test_baseline_does_not_widen_to_a_new_violation |
302 | The baseline pins one SHA; the NEXT bad commit must still fail. |
| function | test_range_accepts_an_explicit_rev_range |
317 | |
| function | test_short_sha_baseline_entry_is_rejected |
329 | |
| function | test_missing_baseline_file_is_an_empty_baseline |
336 | |
| function | test_baseline_comments_and_blank_lines_are_ignored |
340 | |
| function | test_tags_mode_flags_a_violating_annotated_tag |
349 | |
| function | test_tags_mode_passes_on_clean_and_lightweight_tags |
357 | |
| function | test_tags_mode_ignores_the_baseline |
365 | Tag messages are rewritable, so there is no tag baseline to hide behind. |
| function | test_json_output_is_machine_readable |
378 | |
| function | test_no_mode_is_a_usage_error |
391 | |
| function | test_repo_root_override_scans_another_checkout |
397 | |
| function | test_gate_is_clean_against_this_repository |
415 | The live checkout: exactly one finding, and it is the baselined one. |