Orchestrata Ultimate › Tests › Reference › scripts › test_factory_trace_check_cli
Tests reference — tests/scripts/test_factory_trace_check_cli.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_factory_trace_check_cli.py
source · 15 tests · 321 lines
Tests for scripts/factory_trace_check.py — the SPEC-033 B3 trace-check CLI.
Covers: factory.contracts.models, factory.contracts.trace_validation
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestSlugify |
122 | |
| method | TestSlugify.test_lowercases_and_dashes |
123 | |
| method | TestSlugify.test_collapses_repeated_separators |
126 | |
| method | TestSlugify.test_empty_input_falls_back_to_contract |
129 | |
| class | TestFormatViolation |
138 | |
| method | TestFormatViolation.test_unit_outside_contract |
139 | |
| method | TestFormatViolation.test_requirement_untested |
147 | |
| method | TestFormatViolation.test_citing_test_does_not_reach |
160 | |
| class | TestTemplate |
181 | |
| method | TestTemplate.test_template_writes_a_loadable_empty_contract |
182 | |
| method | TestTemplate.test_template_creates_parent_directories |
194 | |
| class | TestCheckFilesMode |
207 | |
| method | TestCheckFilesMode.test_passing_contract_exits_zero |
208 | |
| method | TestCheckFilesMode.test_violation_exits_one_and_lists_the_violation |
228 | |
| method | TestCheckFilesMode.test_no_files_or_base_head_exits_one_with_error |
252 | |
| class | TestCheckGitDiffMode |
269 | |
| method | TestCheckGitDiffMode.test_base_head_diff_drives_the_check |
270 | |
| method | TestCheckGitDiffMode.test_changed_files_from_git_returns_expected_paths |
291 | |
| class | TestErrorHandling |
302 | |
| method | TestErrorHandling.test_missing_contract_file_prints_error_and_exits_one |
303 | |
| method | TestErrorHandling.test_missing_required_command_exits_nonzero |
319 |