Orchestrata Ultimate › Tests › Reference › session › test_session_cli_extended
Tests reference — tests/session/test_session_cli_extended.py
Module of tests/session, split out because the directory page would be too large.
Prose pending.
tests/session/test_session_cli_extended.py
source · 17 tests · 515 lines
Covers: session.cli.main, session.context, session.models
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestArchiveRecoverErrors |
115 | Cover archive --recover when recover_from_git returns errors. |
| method | TestArchiveRecoverErrors.test_archive_recover_corrupt_git_history_exits_1 |
118 | A corrupt context.json in git history produces parse errors and exit 1. |
| class | TestTaskNoContext |
182 | Cover task commands when context files are missing. |
| method | TestTaskNoContext.test_task_list_no_context_exits_1 |
185 | task list on empty directory exits 1 (lines 223-224). |
| method | TestTaskNoContext.test_task_status_no_context_exits_1 |
191 | task status on empty directory exits 1 (lines 286-287). |
| class | TestAchievementEdgeCases |
201 | Cover achievement list no-context and no-achievements branches. |
| method | TestAchievementEdgeCases.test_achievement_list_no_context_exits_1 |
204 | achievement list on empty directory exits 1 (lines 325-326). |
| method | TestAchievementEdgeCases.test_achievement_list_no_achievements |
210 | achievement list with session but no achievements (lines 337-338). |
| class | TestGoalStatusNoContext |
237 | Cover goal status when context files are missing. |
| method | TestGoalStatusNoContext.test_goal_status_no_context_exits_1 |
240 | goal status on empty directory exits 1 (lines 401-402). |
| class | TestGoalStatusRichOutput |
250 | Cover goal status branches for criteria, tasks, progress, blockers. |
| method | TestGoalStatusRichOutput.test_goal_status_criteria_met |
262 | Criteria with status 'met' shows checkmark (lines 417-420). |
| method | TestGoalStatusRichOutput.test_goal_status_tasks_done |
276 | Tasks with status 'done' shows checkmark (lines 423-426). |
| method | TestGoalStatusRichOutput.test_goal_status_progress |
288 | Progress entries are echoed (lines 429-431). |
| method | TestGoalStatusRichOutput.test_goal_status_blockers |
302 | Blockers are echoed with warning icon (lines 434-436). |
| class | TestSyncFlagBranches |
318 | Cover sync --code, --traces, --docs individual flags. |
| method | TestSyncFlagBranches.test_sync_code_only |
321 | sync --code exercises the code branch (line 599). |
| method | TestSyncFlagBranches.test_sync_traces_only |
333 | sync --traces exercises the traces branch (line 603). |
| method | TestSyncFlagBranches.test_sync_docs_only |
344 | sync --docs exercises the docs branch (line 605). |
| class | TestQueryWithResults |
437 | Exercise query commands when Neo4j returns data. |
| method | TestQueryWithResults.test_query_undocumented_with_results |
440 | query undocumented prints a table when entities lack docstrings. |
| method | TestQueryWithResults.test_query_untraced_with_results |
457 | query untraced prints a table when untraced entities exist. |
| method | TestQueryWithResults.test_query_unchecked_with_results |
474 | query unchecked prints a table when unchecked items exist. |
| method | TestQueryWithResults.test_query_search_with_results |
492 | query search finds a node this test seeded, by name. |