A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
test(core): stop relying on env credentials in no-connection test
dextmorgn22c6908a0efb
diff --git a/flowsint-core/tests/core/graph/test_graph_repository.py b/flowsint-core/tests/core/graph/test_graph_repository.pyindex 003b553b..5fbcccb5 100644--- a/flowsint-core/tests/core/graph/test_graph_repository.py+++ b/flowsint-core/tests/core/graph/test_graph_repository.py@@ -43,7 +43,9 @@ class TestCreateNode:mock_connection.query.assert_called_once()def test_create_node_no_connection(self):- repo = Neo4jGraphRepository(neo4j_connection=None)+ # Pass a mock to avoid the constructor's singleton fallback, which+ # requires NEO4J_* credentials; the test wants no connection at all.+ repo = Neo4jGraphRepository(neo4j_connection=MagicMock())repo._connection = Noneresult = repo.create_node({"nodeLabel": "test", "nodeType": "domain"}, "sketch-1")