Orchestrata Ultimate › Tests › Reference › scripts › test_apply_docstring_traces
Tests reference — tests/scripts/test_apply_docstring_traces.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_apply_docstring_traces.py
source · 23 tests · 294 lines
Tests for scripts/apply_docstring_traces.py — the docstring -> @traces generator.
Covers: core.base.traces
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestExtractReqIdsVerifies |
50 | |
| method | TestExtractReqIdsVerifies.test_a_bare_spec_reference_is_not_a_requirement_id |
51 | The exact prose that produced the REQ-022 defect. |
| method | TestExtractReqIdsVerifies.test_the_rejected_id_is_exactly_what_traces_would_reject |
61 | |
| method | TestExtractReqIdsVerifies.test_a_well_formed_id_is_kept |
65 | |
| method | TestExtractReqIdsVerifies.test_typed_segment_ids_are_kept |
69 | |
| method | TestExtractReqIdsVerifies.test_the_fixture_sentinel_is_still_filtered |
76 | |
| method | TestExtractReqIdsVerifies.test_valid_and_invalid_mentions_in_one_docstring |
79 | |
| method | TestExtractReqIdsVerifies.test_ids_are_sorted_and_deduplicated |
83 | |
| class | TestProcessFile |
115 | |
| method | TestProcessFile.test_a_prose_spec_reference_produces_no_decorator |
116 | |
| method | TestProcessFile.test_generated_output_is_importable |
127 | The contract: whatever it writes, @traces must accept. |
| method | TestProcessFile.test_a_valid_id_gets_a_decorator_and_the_import |
145 | |
| method | TestProcessFile.test_a_module_declaring_fixture_ids_is_left_alone |
156 | |
| method | TestProcessFile.test_an_existing_traces_decorator_is_not_duplicated |
168 | |
| method | TestProcessFile.test_non_test_functions_are_ignored |
179 | |
| method | TestProcessFile.test_test_classes_are_decorated |
188 | |
| method | TestProcessFile.test_dry_run_does_not_write |
199 | |
| method | TestProcessFile.test_a_pre_existing_syntax_error_is_reported_not_raised |
206 | |
| method | TestProcessFile.test_output_always_parses |
212 | |
| class | TestInferStory |
229 | |
| method | TestInferStory.test_a_single_us_segment_is_inferred |
230 | |
| method | TestInferStory.test_conflicting_stories_infer_nothing |
233 | |
| method | TestInferStory.test_ids_without_a_typed_segment_infer_nothing |
236 | |
| class | TestMain |
245 | |
| method | TestMain.test_a_missing_directory_is_an_error_exit |
246 | |
| method | TestMain.test_cli_decorates_a_real_package |
258 | |
| method | TestMain.test_directory_walk_decorates_every_test_module |
276 |