trustgraph/tests/unit/test_api
cybermaggedon aea4c2df8e
fix: library API get/update document round-trip bugs (#893) (#928)
Fix 5 cascading bugs in the Library API wrapper that prevented
the get_documents → update_document round-trip from working:

- Tolerate missing title field in document metadata (use .get())
- Use attribute access on Triple objects instead of subscript
- Serialize datetime to int seconds for JSON compatibility
- Handle empty server response on successful update
- Send both id and document-id keys in update request

Added library API tests
2026-05-16 11:32:51 +01:00
..
test_library_api.py fix: library API get/update document round-trip bugs (#893) (#928) 2026-05-16 11:32:51 +01:00