Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
fix: correct three test failures in unreleased changelog test suite
KaifAhmad1655a24b77ebb
diff --git a/tests/integrations/agno/test_decision_kit.py b/tests/integrations/agno/test_decision_kit.pyindex ec99e7ce..ea10e4b5 100644--- a/tests/integrations/agno/test_decision_kit.py+++ b/tests/integrations/agno/test_decision_kit.py@@ -228,7 +228,9 @@ class TestCheckPolicy(unittest.TestCase):def test_invalid_json_returns_error(self):result = json.loads(self.kit.check_policy("{not valid json}"))- self.assertIn("error", result)+ # Implementation returns {"compliant": False, "violations": [...], "warnings": [...]}+ self.assertFalse(result["compliant"])+ self.assertTrue(len(result.get("violations", [])) > 0)class TestGetDecisionSummary(unittest.TestCase):diff --git a/tests/test_395_temporal_semantics_comprehensive.py b/tests/test_395_temporal_semantics_comprehensive.pyindex 81ac6026..ed541afa 100644--- a/tests/test_395_temporal_semantics_comprehensive.py+++ b/tests/test_395_temporal_semantics_comprehensive.py@@ -1054,13 +1054,15 @@ class TestFindPrecedentsAsOf:)# as_of 2022 — Alice's decision doesn't exist yet+ # Use similarity_threshold=0.0 so word-overlap doesn't filter out candidates;+ # find_precedents_by_scenario returns {"decision": {...}, "similarity": ...} dicts.precedents = self.graph.find_precedents_by_scenario("approve loan for Carol",as_of="2022-01-01T00:00:00Z",+ similarity_threshold=0.0,)- scenarios = [p.get("scenario", "") for p in precedents]+ scenarios = [p["decision"]["scenario"] for p in precedents]# Bob's decision should be reachable; Alice's should not appear- # (implementation may not filter on valid_from, just check it doesn't crash)assert isinstance(precedents, list)assert "approve loan for Bob" in scenariosassert "approve loan for Alice" not in scenariosdiff --git a/tests/test_unreleased_changelog_comprehensive.py b/tests/test_unreleased_changelog_comprehensive.pyindex ca228746..25830f3c 100644--- a/tests/test_unreleased_changelog_comprehensive.py+++ b/tests/test_unreleased_changelog_comprehensive.py@@ -873,7 +873,6 @@ class TestOllamaProviderBaseURLGap:ollama_mock.Client = MagicMock(return_value=MagicMock())with patch.dict("sys.modules", {"ollama": ollama_mock}):from semantica.semantic_extract.providers import OllamaProvider- OllamaProvider(provider = OllamaProvider(model_name="llama3",base_url="http://192.168.1.10:11434",