def test_limit_results_none(self):
        """if env var isn't set or is None"""
        for index in self.indexes:
            with self.subTest(f"Index type: {index.type}. Index name: {index.name}"):
                docs = [{"title1": "a", "_id": uuid.uuid4().__str__()} for _ in range(2000)]

                add_docs_batched(
                    config=self.config,
                    index_name=index.name,
                    docs=docs, device="cpu",
                    tensor_fields=["title1", "desc2"] if isinstance(index, UnstructuredMarqoIndex) else None
                )

                for mock_environ in [dict(),
                                     {enums.EnvVars.MARQO_MAX_RETRIEVABLE_DOCS: ''}]:
                    @mock.patch.dict(os.environ, {**os.environ, **mock_environ})
                    def run():
                        sample_size = 500
                        limit_search = tensor_search.get_documents_by_ids(
                            config=self.config, index_name=index.name,
                            document_ids=[docs[i]['_id'] for i in range(sample_size)]
                        ).dict(exclude_none=True, by_alias=True)
                        assert len(limit_search['results']) == sample_size
                        return True

                    assert run()
if env var isn't set or is None
tests/integ_tests/tensor_search/integ_tests/test_get_documents_by_ids.py