def test_search_vectoriseIsCalledWithEnableCacheTrue(self):
        """Ensure vectorise is called with enable_cache=True when calling search."""
        for index in [self.unstructured_default_text_index, self.structured_default_text_index]:
            dummy_return = [[1.0, ] * 384, ]
            with (self.subTest(index=index)):
                with mock.patch("marqo.s2_inference.s2_inference.vectorise", return_value=dummy_return) as \
                        mock_vectorise:
                    tensor_search.search(text="some text", index_name=index.name, config=self.config)
                    mock_vectorise.assert_called_once()
                    args, kwargs = mock_vectorise.call_args
                    self.assertTrue(kwargs["enable_cache"])
                mock_vectorise.reset_mock()
Ensure vectorise is called with enable_cache=True when calling search.
tests/integ_tests/tensor_search/integ_tests/test_search_combined.py