Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_requirement_resolution

Tests reference — tests/knowledge_graph/test_requirement_resolution.py

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

Prose pending.

tests/knowledge_graph/test_requirement_resolution.py

source · 6 tests · 177 lines

Tests for canonical Requirement/RequirementItem resolution.

Covers: knowledge_graph.requirement_resolution

Kind Name Line Description
function test_resolve_requirement_chain_unifies_item_with_parent 23 A traced RequirementItem resolves to its parent Requirement + Spec.
function test_resolve_requirement_chain_item_only 49 A RequirementItem with no parent resolves to itself.
function test_resolve_requirement_chain_project_scoped 64 Requirements from other projects are excluded by project_id.
function test_resolve_requirements_for_symbol 97 A symbol name resolves to the unified requirement chain of its traces.
function test_closure_requirement_chain_includes_dependencies 117 Closure walks parent, siblings, and REQUIRES dependencies.
function test_closure_requirement_chain_depth_limit 155 max_depth limits how far the closure walks REQUIRES edges.