Orchestrata Ultimate › Tests › Reference › generated_recovery › test_knowledge_graph_context_injector

Tests reference — tests/generated_recovery/test_knowledge_graph_context_injector.py

Module of tests/generated_recovery, split out because the directory page would be too large.

Prose pending.

tests/generated_recovery/test_knowledge_graph_context_injector.py

source · 28 tests · 335 lines

Auto-generated tests for: knowledge_graph.context_injector

Covers: knowledge_graph.context_injector

Kind Name Line Description
class TestGraphContextDataclass 33 Structural tests for @dataclass GraphContext.
method TestGraphContextDataclass.test_default_values 43 Default values must match the class definition.
method TestGraphContextDataclass.test_field_assignment_and_readback 52
method TestGraphContextDataclass.test_equality_by_value 62
class TestGraphContextToPromptBranches 73 Branch/exception tests for: knowledge_graph.context_injector.GraphContext.to_prompt
method TestGraphContextToPromptBranches.test_L76_when_self_files_true 99 Line 76: condition self.files is True.
method TestGraphContextToPromptBranches.test_L76_when_self_files_false 108 Line 76: condition self.files is False.
method TestGraphContextToPromptBranches.test_L90_when_self_relationships_true 117 Line 90: condition self.relationships is True.
method TestGraphContextToPromptBranches.test_L90_when_self_relationships_false 126 Line 90: condition self.relationships is False.
method TestGraphContextToPromptBranches.test_L101_when_inherits_true 135 Line 101: condition inherits is True.
method TestGraphContextToPromptBranches.test_L101_when_inherits_false 143 Line 101: condition inherits is False.
method TestGraphContextToPromptBranches.test_L106_when_calls_true 151 Line 106: condition calls is True.
method TestGraphContextToPromptBranches.test_L106_when_calls_false 159 Line 106: condition calls is False.
method TestGraphContextToPromptBranches.test_L111_when_imports_true 167 Line 111: condition imports is True.
method TestGraphContextToPromptBranches.test_L111_when_imports_false 175 Line 111: condition imports is False.
method TestGraphContextToPromptBranches.test_L116_when_methods_true 183 Line 116: condition methods is True.
method TestGraphContextToPromptBranches.test_L116_when_methods_false 191 Line 116: condition methods is False.
method TestGraphContextToPromptBranches.test_L121_when_others_true 199 Line 121: condition others is True.
method TestGraphContextToPromptBranches.test_L121_when_others_false 207 Line 121: condition others is False.
method TestGraphContextToPromptBranches.test_L130_when_self_tests_true 215 Line 130: condition self.tests is True.
method TestGraphContextToPromptBranches.test_L130_when_self_tests_false 224 Line 130: condition self.tests is False.
method TestGraphContextToPromptBranches.test_L135_when_self_recent_changes_true 233 Line 135: condition self.recent_changes is True.
method TestGraphContextToPromptBranches.test_L135_when_self_recent_changes_false 242 Line 135: condition self.recent_changes is False.
method TestGraphContextToPromptBranches.test_L141_when_wordtokencounter_count_result_max_contex_true 251 Line 141: condition WordTokenCounter().count(result) > max_context_tokens is True.
method TestGraphContextToPromptBranches.test_L141_when_wordtokencounter_count_result_max_contex_false 259 Line 141: condition WordTokenCounter().count(result) > max_context_tokens is False.
class TestContextInjectorInjectBranches 268 Branch/exception tests for: knowledge_graph.context_injector.ContextInjector.inject
method TestContextInjectorInjectBranches.test_L196_when_not_self_available_true 297 Line 196: condition not self._available is True.
method TestContextInjectorInjectBranches.test_L196_when_not_self_available_false 306 Line 196: condition not self._available is False.
method TestContextInjectorInjectBranches.test_L200_when_not_target_files_true 315 Line 200: condition not target_files is True.
method TestContextInjectorInjectBranches.test_L200_when_not_target_files_false 323 Line 200: condition not target_files is False.
method TestContextInjectorInjectBranches.test_handles_Exception_L203 331 Line 203: Exception handler — suppressed.