def test_partial_update_should_update_int_map_with_new_value(self):
        """Test that partial updates to int maps with new values are successful."""
        test_docs = [self.doc2, self.doc3]

        for doc in test_docs:
            with self.subTest(f"Adding new key to int map for document with ID {doc['_id']}"):
                id = doc['_id']
                res = self.config.document.partial_update_documents([{'_id': id, 'int_map': {
                    'd': 2
                }}], self.index)
                self.assertFalse(res.errors, f"Expected no errors when updating document {id}")

                doc = tensor_search.get_document_by_id(self.config, self.index.name, id)
                self.assertIsNone(doc.get('int_map.a'), f"Expected int_map.a to be None for document {id}")
                self.assertIsNone(doc.get('int_map.b'), f"Expected int_map.b to be None for document {id}")
                self.assertEqual(doc['int_map.d'], 2, f"Expected int_map.d to be 2 for document {id}")

                # Verify field type
                self._assert_field_types(id, [
                    ('int_map', MarqoFieldTypes.INT_MAP),
                    ('int_map.d', MarqoFieldTypes.INT_MAP),
                    ('int_map.a', None),
                    ('int_map.b', None)
                ])
Test that partial updates to int maps with new values are successful.
tests/integ_tests/core/document/test_partial_update_semi_structured.py