def test_recommend_missingDocuments_failure(self):
        """
        Test that the recommender fails when some documents are missing
        """
        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):
                    self.recommender.recommend(
                        index_name=index.name,
                        documents=["100", "2"],
                    )

        Test that the recommender fails when some documents are missing
        
tests/integ_tests/core/search/test_recommender.py