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
test(utils): add regression coverage for safe_import (fixes #352)
KaifAhmad1f7f75e313201
diff --git a/tests/utils/test_utils.py b/tests/utils/test_utils.pyindex 41aec46e..479be1cf 100644--- a/tests/utils/test_utils.py+++ b/tests/utils/test_utils.py@@ -32,6 +32,11 @@ class TestHelpers(unittest.TestCase):merged = helpers.merge_dicts(dict1, dict2, deep=True)self.assertEqual(merged, {"a": 1, "b": {"c": 2, "d": 3}, "e": 4})+ def test_safe_import_returns_module_and_flag(self):+ module, available = helpers.safe_import("json")+ self.assertTrue(available)+ self.assertIs(module, json)+class TestValidators(unittest.TestCase):def test_validate_data_required_fields(self):