def test_recommend_allDocsZeroWeight_failure(self):
        """
        Test that the recommender fails when all documents have zero weight
        """
        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": 0, "2": 0, "3": 0}
                    )
                self.assertIn('No documents with non-zero weight provided', str(ex.exception))

        Test that the recommender fails when all documents have zero weight
        
tests/integ_tests/core/search/test_recommender.py