Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_kg_design

Tests reference — tests/knowledge_graph/test_kg_design.py

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

Prose pending.

tests/knowledge_graph/test_kg_design.py

source · 50 tests · 426 lines

Tests for spike.kg_design -- SessionData, RTMSnapshot, ComplianceResult, KGDesignStore.

Covers: knowledge_graph.kg_design

Kind Name Line Description
class TestSessionData 22 Tests for the SessionData dataclass.
method TestSessionData.test_creation_with_id_only 25
method TestSessionData.test_default_status_is_active 29
method TestSessionData.test_default_achievements_is_empty_list 33
method TestSessionData.test_default_work_log_is_empty_list 37
method TestSessionData.test_default_purpose_is_empty_string 41
method TestSessionData.test_started_at_auto_populated 45
method TestSessionData.test_started_at_preserved_when_provided 50
method TestSessionData.test_full_creation 54
method TestSessionData.test_mutable_defaults_are_independent 68
class TestRTMSnapshot 76 Tests for the RTMSnapshot dataclass.
method TestRTMSnapshot.test_creation_with_id_only 79
method TestRTMSnapshot.test_default_coverage_pct_is_zero 83
method TestRTMSnapshot.test_default_verified_count_is_zero 87
method TestRTMSnapshot.test_default_total_count_is_zero 91
method TestRTMSnapshot.test_default_missing_count_is_zero 95
method TestRTMSnapshot.test_default_orphan_count_is_zero 99
method TestRTMSnapshot.test_timestamp_auto_populated 103
method TestRTMSnapshot.test_timestamp_preserved_when_provided 107
method TestRTMSnapshot.test_full_creation 111
method TestRTMSnapshot.test_full_coverage_snapshot 126
class TestComplianceResult 133 Tests for the ComplianceResult dataclass.
method TestComplianceResult.test_default_creation 136
method TestComplianceResult.test_full_creation 144
method TestComplianceResult.test_to_dict_keys 158
method TestComplianceResult.test_to_dict_values_match_fields 169
method TestComplianceResult.test_compliance_pct_full 180
method TestComplianceResult.test_compliance_pct_zero 184
method TestComplianceResult.test_mutable_defaults_are_independent 188
method TestComplianceResult.test_to_dict_empty_methods 194
class TestComplianceCalculation 201
method TestComplianceCalculation.test_perfect_compliance 204
method TestComplianceCalculation.test_zero_compliance 213
method TestComplianceCalculation.test_partial_compliance_two_thirds 222
method TestComplianceCalculation.test_extra_classes_dont_reduce_compliance 230
method TestComplianceCalculation.test_missing_methods_stored_per_class 239
class TestKGDesignStoreUnavailable 253
method TestKGDesignStoreUnavailable.test_instantiation_does_not_raise 270
method TestKGDesignStoreUnavailable.test_available_attribute_exists 273
method TestKGDesignStoreUnavailable.test_ensure_project_does_not_raise 276
method TestKGDesignStoreUnavailable.test_ensure_project_with_type_does_not_raise 281
method TestKGDesignStoreUnavailable.test_store_spec_does_not_raise 288
method TestKGDesignStoreUnavailable.test_get_requirements_returns_list 296
method TestKGDesignStoreUnavailable.test_get_requirements_returns_empty_when_unavailable 300
method TestKGDesignStoreUnavailable.test_check_compliance_returns_compliance_result 306
method TestKGDesignStoreUnavailable.test_check_compliance_no_crash_when_unavailable 310
method TestKGDesignStoreUnavailable.test_store_user_stories_does_not_raise 319
method TestKGDesignStoreUnavailable.test_store_requirements_does_not_raise 332
method TestKGDesignStoreUnavailable.test_get_session_history_returns_list 345
method TestKGDesignStoreUnavailable.test_get_rtm_trend_returns_list 349
method TestKGDesignStoreUnavailable.test_close_does_not_raise 353
method TestKGDesignStoreUnavailable.test_query_existing_code_returns_dict 358
class TestKGDesignStoreHubLinking 366 Live-graph behavioral tests for the session-254 root-connectivity fix
method TestKGDesignStoreHubLinking.test_store_spec_mints_missing_project_hub 401
method TestKGDesignStoreHubLinking.test_store_spec_still_rejects_empty_slug 414
method TestKGDesignStoreHubLinking.test_store_session_mints_missing_project_hub 418