Orchestrata Ultimate › Tests › Reference › scripts › test_add_traces_from_evidence
Tests reference — tests/scripts/test_add_traces_from_evidence.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_add_traces_from_evidence.py
source · 21 tests · 599 lines
Tests for scripts/add_traces_from_evidence.py — the evidence trace writer.
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestHelpers |
56 | |
| method | TestHelpers.test_story_extracted_from_req_id |
57 | |
| method | TestHelpers.test_story_for_refuses_a_legacy_story_id |
64 | RUL-031: a legacy story spelling yields no story, rather than being |
| method | TestHelpers.test_defining_spec_prefers_family_match |
81 | |
| method | TestHelpers.test_defining_spec_falls_back_to_first_definer |
85 | |
| method | TestHelpers.test_defining_spec_none_for_ghost |
89 | |
| class | TestEnclosingTestFunctions |
93 | |
| method | TestEnclosingTestFunctions.test_function_span_attribution |
94 | |
| method | TestEnclosingTestFunctions.test_syntax_error_file_returns_empty |
105 | |
| method | TestEnclosingTestFunctions.test_undecodable_file_returns_empty |
110 | |
| method | TestEnclosingTestFunctions.test_class_docstring_attaches_to_every_test |
115 | |
| class | TestProcessFile |
128 | |
| method | TestProcessFile.test_inserts_stacked_decorator_and_import |
132 | |
| method | TestProcessFile.test_line_distance_beyond_tolerance_is_ignored |
144 | |
| method | TestProcessFile.test_merge_into_empty_reqs_list |
155 | |
| method | TestProcessFile.test_merge_into_multiline_list_stays_parseable |
174 | |
| method | TestProcessFile.test_existing_id_is_skipped_idempotent |
194 | |
| method | TestProcessFile.test_no_duplicate_import_for_other_traces_module |
208 | |
| method | TestProcessFile.test_dry_run_writes_nothing |
223 | |
| method | TestProcessFile.test_stacked_per_spec_never_mixed |
233 | |
| class | TestMain |
248 | End-to-end main(): a real evidence chain (REQ cited in a test's |
| method | TestMain.test_main_dry_run_finds_evidence_backed_addition |
339 | |
| method | TestMain.test_main_apply_writes_decorator_and_import |
369 | |
| method | TestMain.test_main_apply_class_method_infra_lane_and_missing_file |
399 | One run covering four more main() branches together: |
| method | TestMain.test_main_no_evidence_found |
569 |