def test_use_existing_tensors_resilience(self):
        """should if one doc fails validation, the rest should still be inserted
        """
        d1 = {
            "title 1": "content 1",
            "desc 2": "content 2. blah blah blah"
        }
        # 1 valid ID doc:
        res = self.add_documents(
            config=self.config, add_docs_params=AddDocsParams(index_name=self.index_name_1,
                                                              docs=[d1, {'_id': 1224}, {"_id": "fork", "abc": "123"}],
                                                              auto_refresh=True, use_existing_tensors=True,
                                                              device="cpu"))
        assert [item['status'] for item in res['items']] == [201, 400, 201]

        # no valid IDs
        res_no_valid_id = self.add_documents(
            config=self.config,
            add_docs_params=AddDocsParams(index_name=self.index_name_1, docs=[d1, {'_id': 1224}, d1],
                                          auto_refresh=True, use_existing_tensors=True, device="cpu"))
        # we also should not be send in a get request as there are no valid document IDs
        assert [item['status'] for item in res_no_valid_id['items']] == [201, 400, 201]
should if one doc fails validation, the rest should still be inserted
        
tests/integ_tests/tensor_search/test_add_documents_use_existing_tensors.py