Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

Potential fix for pull request finding 'Imprecise assert'

Mohd Kaifc77690129d0a
diff --git a/tests/integrations/agno/test_decision_kit.py b/tests/integrations/agno/test_decision_kit.py
index ea10e4b5..8efd4830 100644
--- a/tests/integrations/agno/test_decision_kit.py
+++ b/tests/integrations/agno/test_decision_kit.py
@@ -230,7 +230,8 @@ class TestCheckPolicy(unittest.TestCase):
result = json.loads(self.kit.check_policy("{not valid json}"))
# Implementation returns {"compliant": False, "violations": [...], "warnings": [...]}
self.assertFalse(result["compliant"])
- self.assertTrue(len(result.get("violations", [])) > 0)
+ violations = result.get("violations", [])
+ self.assertGreater(len(violations), 0)
class TestGetDecisionSummary(unittest.TestCase):