Orchestrata Ultimate › Tests › Reference › scripts › test_diagram_tools_cli
Tests reference — tests/scripts/test_diagram_tools_cli.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_diagram_tools_cli.py
source · 6 tests · 146 lines
Tests for scripts/diagram-tools.py — the global diagram-subcommand CLI
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_find_project_root_finds_pyproject |
77 | |
| function | test_find_project_root_none_when_absent |
86 | |
| function | test_main_forwards_help_to_real_orchestrata_tools |
97 | Real project root found -> argv is forwarded to the real, installed |
| function | test_main_forwards_bogus_subcommand_nonzero_exit |
108 | An invalid subcommand makes the real orchestrata-tools CLI exit |
| function | test_main_no_project_root_exits_1 |
119 | No pyproject.toml anywhere in the cwd's ancestry -> exit 1 with a |
| function | test_main_module_entrypoint_runs |
132 | Covers the if __name__ == "__main__": main() guard by executing |