def test_partial_update_should_handle_duplicate_doc_ids(self):
        """Test handling of duplicate document IDs in update request"""
        updates = [
            {
                '_id': '2',
                'int_field': 100
            },
            {
                '_id': '2',
                'int_field': 200
            }
        ]
        res = self.config.document.partial_update_documents(updates, self.index)
        self.assertFalse(res.errors)

        # Verify last update wins
        doc = tensor_search.get_document_by_id(self.config, self.index.name, '2')
        self.assertEqual(200, doc['int_field'])
        self._assert_fields_unchanged(doc, ['int_field'])
Test handling of duplicate document IDs in update request
tests/integ_tests/core/document/test_partial_update_semi_structured.py