Orchestrata Ultimate › Tests › Reference › context › providers
Tests reference — tests/context/providers
tests/context/providers — 5 test modules, 41 test functions. Source tree: tests/context/providers at commit 8a2cb42ad. Generated from the tests AST snapshot by scripts/gen-data-pages.py.
Prose pending.
Modules
| Module | Tests | Covers |
|---|---|---|
test_artifact_digest.py |
6 | 1 |
test_ast_context.py |
6 | 1 |
test_ast_context_coverage.py |
12 | 1 |
test_mission_context.py |
6 | 2 |
test_trimming.py |
11 | 2 |
Module details
tests/context/providers/test_artifact_digest.py
source · 6 tests · 85 lines
Tests for
artifact_digest.py.
Covers: context.providers.artifact_digest
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_render_artifact_digest_with_stage_and_type |
32 | |
| function | test_render_artifact_digest_with_stage_alias_and_artifact_type |
47 | Accepts orchestrator-style artifact field names. |
| function | test_render_artifact_digest_sorts_by_timestamp |
66 | |
| function | test_render_artifact_digest_respects_max_items |
74 | |
| function | test_render_artifact_digest_returns_empty_for_none |
80 | |
| function | test_render_artifact_digest_returns_empty_for_empty_store |
84 |
tests/context/providers/test_ast_context.py
source · 6 tests · 85 lines
Tests for knowledge_graph.context_providers.ast_context.
Covers: context.providers.ast_context
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestRenderAstContext |
6 | |
| method | TestRenderAstContext.test_empty_target_files |
7 | |
| method | TestRenderAstContext.test_missing_toolkit_degrades_gracefully |
10 | |
| method | TestRenderAstContext.test_no_parseable_sources |
17 | |
| method | TestRenderAstContext.test_real_python_file_signals |
23 | |
| method | TestRenderAstContext.test_toolkit_cache_is_reused_across_calls |
50 | The toolkit module is cached after the first successful load. |
| method | TestRenderAstContext.test_project_id_rendered_in_header |
73 | When project_id is supplied, the AST context block identifies the |
tests/context/providers/test_ast_context_coverage.py
source · 12 tests · 265 lines
Coverage-targeted tests for context.providers.ast_context.
Covers: context.providers.ast_context
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestLoadAstTool |
89 | |
| method | TestLoadAstTool.test_unrecognized_toolkit_suffix_raises_import_error |
90 | |
| class | TestResolveSources |
99 | |
| method | TestResolveSources.test_join_failure_falls_back_to_raw_path |
100 | |
| method | TestResolveSources.test_directory_target_resolves_to_directory_source |
117 | |
| class | TestSignalExtractionFailures |
132 | |
| method | TestSignalExtractionFailures.test_signature_failure_still_renders_other_sections |
133 | |
| method | TestSignalExtractionFailures.test_complexity_failure_still_renders_other_sections |
147 | |
| method | TestSignalExtractionFailures.test_branch_failure_still_renders_other_sections |
162 | |
| method | TestSignalExtractionFailures.test_untraced_failure_still_renders_other_sections |
172 | |
| method | TestSignalExtractionFailures.test_callgraph_failure_still_renders_other_sections |
181 | |
| method | TestSignalExtractionFailures.test_all_sections_render_with_healthy_toolkit |
190 | |
| class | TestBudgetAndEmptyResult |
204 | |
| method | TestBudgetAndEmptyResult.test_max_lines_cap_trims_block |
205 | |
| method | TestBudgetAndEmptyResult.test_hotspots_rendered_with_real_toolkit |
233 | |
| method | TestBudgetAndEmptyResult.test_no_signals_returns_empty_string |
254 |
tests/context/providers/test_mission_context.py
source · 6 tests · 110 lines
Tests for
mission_context.py.
Covers: context.providers.mission_context, session.models
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_render_mission_context_includes_project_state |
68 | |
| function | test_render_mission_context_includes_active_goal_and_unmet_criteria |
77 | |
| function | test_render_mission_context_includes_pending_work |
86 | |
| function | test_render_mission_context_includes_handoff |
94 | |
| function | test_render_mission_context_respects_line_cap |
103 | |
| function | test_render_mission_context_with_none_returns_empty |
109 |
tests/context/providers/test_trimming.py
source · 11 tests · 89 lines
Tests for boundary-aware context trimming.
Covers: context.providers.trimming, memory.token_counter
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_trim_returns_original_when_under_budget |
18 | |
| function | test_trim_empty_string_returns_empty |
23 | |
| function | test_trim_zero_budget_returns_empty |
27 | |
| function | test_trim_negative_budget_returns_empty |
31 | |
| function | test_trim_preserves_whole_sentences |
35 | |
| function | test_trim_preserves_whole_paragraphs |
44 | |
| function | test_trim_falls_back_to_words_when_sentences_too_long |
53 | |
| function | test_trim_hard_limit_guarantees_budget |
63 | |
| function | test_trim_without_hard_limit_does_not_truncate |
70 | |
| function | test_trim_by_bytes_for_oversized_first_word |
77 | |
| function | test_trim_empty_segments_returns_empty |
87 |