def test_recommend_slerpZeroSumWeights_failure(self):
        """
        Test that the recommender fails when the sum of consecutive weights is zero
        """
        for index in [self.unstructured_text_index, self.structured_text_index]:
            with self.subTest(type=index.type):
                self._populate_index(index)

                with self.assertRaisesStrict(InvalidArgumentError) as ex:
                    self.recommender.recommend(
                        index_name=index.name,
                        documents={"1": 1, "2": -1},
                        tensor_fields=['title'],
                        interpolation_method=InterpolationMethod.SLERP,
                        exclude_input_documents=False,
                    )
                self.assertIn('SLERP cannot interpolate', str(ex.exception))

        Test that the recommender fails when the sum of consecutive weights is zero
        
tests/integ_tests/core/search/test_recommender.py