mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
Potential fix for pull request finding 'Imprecise assert'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
parent
655a24b77e
commit
c77690129d
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user