(graph_db)
| 70 | |
| 71 | |
| 72 | def 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 | |
| 86 | def test_delete_node(graph_db): |
nothing calls this directly
no test coverage detected