MCPcopy
hub / github.com/langroid/langroid / test_update_document

Function test_update_document

tests/main/test_arangodb.py:264–276  ·  view source on GitHub ↗
(test_collection)

Source from the content-addressed store, hash-verified

262
263
264def test_update_document(test_collection):
265 # Create initial document
266 doc = {"name": "test", "value": 100}
267 result = test_collection.insert(doc)
268 doc_key = result["_key"]
269
270 # Update the document
271 new_doc = {"_key": doc_key, "value": 200}
272 test_collection.update(new_doc)
273
274 # Verify update
275 retrieved = test_collection.get(doc_key)
276 assert retrieved["value"] == 200
277
278
279def test_delete_document(test_collection):

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…