Orchestrata Ultimate › Tests › Reference › scripts › test_gen_brief_pack
Tests reference — tests/scripts/test_gen_brief_pack.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_gen_brief_pack.py
source · 29 tests · 326 lines
Tests for scripts/gen_brief_pack.py — the dispatch-time brief-pack CLI
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_resolve_files_matches_a_known_file |
44 | |
| function | test_resolve_files_glob_star_matches_multiple |
52 | |
| function | test_resolve_files_no_match_is_empty |
65 | |
| function | test_resolve_files_skips_directory_hits |
70 | A glob hit that resolves to a directory (not a file) is dropped -- |
| function | test_resolve_files_absolute_pattern_outside_repo_root_uses_raw_hit |
78 | An absolute --files pattern overrides repo_root entirely |
| function | test_first_docstring_line_extracts_first_nonblank_line |
90 | |
| function | test_first_docstring_line_empty_for_non_python |
99 | |
| function | test_first_docstring_line_empty_for_missing_file |
104 | |
| function | test_first_docstring_line_empty_when_module_has_no_docstring |
109 | |
| function | test_first_docstring_line_empty_when_docstring_is_all_whitespace |
115 | ast.get_docstring can return a non-empty-but-blank string (e.g. |
| function | test_file_to_dotted_module_converts_src_path |
127 | |
| function | test_file_to_dotted_module_handles_init |
135 | |
| function | test_file_to_dotted_module_none_outside_src |
143 | |
| function | test_file_to_dotted_module_none_when_src_is_the_last_component |
149 | src itself (no filename after it) leaves mod_parts empty. |
| function | test_file_to_dotted_module_none_for_non_python_file_under_src |
155 | |
| function | test_extract_file_paths_pulls_every_hit_line |
160 | |
| function | test_refs_for_symbol_finds_definition_and_a_consumer |
171 | GraphClient's real defining module + a real consumer must both show |
| function | test_run_ast_tool_reports_a_real_subprocess_error |
183 | A genuinely invalid AST-tool subcommand really exits nonzero -- the |
| function | test_run_ast_tool_reports_a_real_timeout |
192 | A REAL subprocess that really outlives timeout -- the |
| function | test_who_imports_for_module_finds_a_test_consumer |
207 | |
| function | test_build_pack_includes_all_four_sections_and_test_modules |
217 | |
| function | test_build_pack_symbols_only_has_placeholder_file_section |
235 | |
| function | test_build_pack_files_only_has_placeholder_symbol_section |
242 | |
| function | test_build_pack_non_src_file_resolves_no_reverse_import_module |
253 | A --files match outside src/ (file_to_dotted_module -> |
| function | test_build_pack_no_test_modules_found_for_a_symbol_with_no_refs |
262 | |
| function | test_main_requires_files_or_symbols |
268 | |
| function | test_main_writes_pack_to_out_file_in_process |
278 | Same --out behaviour as test_cli_subprocess_writes_out_file |
| function | test_main_prints_pack_to_stdout_when_no_out |
295 | |
| function | test_cli_subprocess_writes_out_file |
304 | End-to-end CLI smoke test via a real subprocess, --out to a real file. |