Orchestrata Ultimate › Tests › Reference › session › test_session_kg_context_coverage
Tests reference — tests/session/test_session_kg_context_coverage.py
Module of tests/session, split out because the directory page would be too large.
Prose pending.
tests/session/test_session_kg_context_coverage.py
source · 15 tests · 272 lines
Coverage tests for KnowledgeGraphContext.
Covers: session.kg_context
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestConnect |
41 | |
| method | TestConnect.test_connect_failure_returns_false |
42 | |
| method | TestConnect.test_close_resets_driver |
47 | |
| method | TestConnect.test_close_when_disconnected_safe |
52 | |
| class | TestRunWithNoDriver |
58 | |
| method | TestRunWithNoDriver.test_run_without_driver_returns_empty |
59 | |
| class | TestEmptyResultBranches |
65 | Cover lines where if not rows returns the empty default dict. |
| method | TestEmptyResultBranches.test_get_file_context_missing_file |
68 | |
| method | TestEmptyResultBranches.test_get_spec_context_missing_spec |
74 | |
| method | TestEmptyResultBranches.test_get_class_context_missing_class |
79 | |
| method | TestEmptyResultBranches.test_get_session_context_missing_session |
86 | |
| class | TestQueryHelpers |
93 | Exercise the read-only graph helpers — they tolerate empty graphs. |
| method | TestQueryHelpers.test_get_undocumented |
96 | |
| method | TestQueryHelpers.test_get_untraced |
100 | |
| method | TestQueryHelpers.test_get_unchecked_requirements |
104 | |
| class | TestSeededGraphQueries |
126 | Cover the 'found' branches of the get_* methods against real data. |
| method | TestSeededGraphQueries.test_get_file_context_returns_entities_and_specs |
135 | |
| method | TestSeededGraphQueries.test_get_spec_context_returns_requirements_with_progress |
178 | |
| method | TestSeededGraphQueries.test_get_class_context_returns_file_methods_and_traces |
214 | |
| method | TestSeededGraphQueries.test_get_session_context_returns_purpose_files_and_actions |
245 |