def test_use_existing_tensors_check_updates(self):
        """ Check to see if the document has been appropriately updated
        """
        self.add_documents(config=self.config, add_docs_params=AddDocsParams(
            index_name=self.index_name_1, docs=[
                {
                    "_id": "123",
                    "title 1": "content 1",
                    "modded field": "original content",
                    "non-tensor-field": "content 2. blah blah blah"
                }], auto_refresh=True, non_tensor_fields=["non-tensor-field"], device="cpu"))

        def pass_through_vectorise(*arg, **kwargs):
            """Vectorise will behave as usual, but we will be able to see the call list
            via mock
            """
            return vectorise(*arg, **kwargs)

        mock_vectorise = unittest.mock.MagicMock()
        mock_vectorise.side_effect = pass_through_vectorise

        @unittest.mock.patch("marqo.s2_inference.s2_inference.vectorise", mock_vectorise)
        def run():
            self.add_documents(config=self.config, add_docs_params=AddDocsParams(
                index_name=self.index_name_1, docs=[
                    {
                        "_id": "123",
                        "title 1": "content 1",  # this one should keep the same vectors
                        "my new field": "cat on mat",  # new vectors because it's a new field
                        "modded field": "updated content",  # new vectors because the content is modified
                        "non-tensor-field": "content 2. blah blah blah",  # this would should still have no vectors
                        "2nd-non-tensor-field": "content 2. blah blah blah"
                        # this one is explicitly being non-tensorised
                    }], auto_refresh=True, non_tensor_fields=["2nd-non-tensor-field"], use_existing_tensors=True,
                device="cpu"))
            content_to_be_vectorised = [call_kwargs['content'] for call_args, call_kwargs
                                        in mock_vectorise.call_args_list]
            assert content_to_be_vectorised == [["cat on mat"], ["updated content"]]
            return True

        assert run()
 Check to see if the document has been appropriately updated
        
tests/integ_tests/tensor_search/test_add_documents_use_existing_tensors.py