Skip to main content

H.1.7: Tests for Component Metadata Registry

Tests the unified metadata registry that consolidates component metadata from multiple sources.

File: test_component_metadata_registry.py

Classes

TestLLMBinding

Tests for LLMBinding dataclass.

TestCapabilityInfo

Tests for CapabilityInfo dataclass.

TestComponentMetadata

Tests for ComponentMetadata dataclass.

TestEnums

Tests for enum types.

TestComponentMetadataRegistryCore

Tests for ComponentMetadataRegistry core functionality.

TestComponentMetadataRegistryWithData

Tests for ComponentMetadataRegistry with populated data.

TestIndexBuilding

Tests for index building functionality.

Functions

test_default_values()

Test LLMBinding default values.

test_custom_values()

Test LLMBinding with custom values.

test_from_dict()

Test LLMBinding.from_dict().

test_from_dict_partial()

Test LLMBinding.from_dict() with partial data.

test_creation()

Test CapabilityInfo creation.

test_default_values()

Test CapabilityInfo default values.

test_minimal_creation()

Test ComponentMetadata with minimal fields.

test_full_creation()

Test ComponentMetadata with all fields.

test_to_dict()

Test ComponentMetadata.to_dict().

test_component_types()

Test all ComponentType values exist.

test_component_status()

Test all ComponentStatus values exist.

test_activation_state()

Test all ActivationState values exist.

test_registry_initialization()

Test registry can be initialized without auto-load.

test_get_nonexistent()

Test getting a nonexistent component.

test_get_by_name_nonexistent()

Test get_by_name for nonexistent component.

Usage

python test_component_metadata_registry.py