MCPcopy Create free account
hub / github.com/MemTensor/MemOS / test_update_node

Function test_update_node

tests/graph_dbs/graph_dbs.py:72–83  ·  view source on GitHub ↗
(graph_db)

Source from the content-addressed store, hash-verified

70
71
72def test_update_node(graph_db):
73 session_mock = graph_db.driver.session.return_value.__enter__.return_value
74 node_id = str(uuid.uuid4())
75
76 graph_db.update_node(
77 node_id, {"tags": ["updated"], "updated_at": datetime.utcnow().isoformat()}
78 )
79
80 calls = session_mock.run.call_args_list
81 assert any("SET n.updated_at = datetime($updated_at)" in call.args[0] for call in calls), (
82 "Expected UPDATE to be called"
83 )
84
85
86def test_delete_node(graph_db):

Callers

nothing calls this directly

Calls 1

update_nodeMethod · 0.45

Tested by

no test coverage detected