def test_bulk_args(self, sync_client_request_saving: Any, index: str) -> None:
        """Test to make sure the bulk arguments work as expected."""
        store = VectorStore(
            index=index,
            retrieval_strategy=BM25Strategy(),
            client=sync_client_request_saving,
        )

        texts = ["foo", "bob", "baz"]
        store.add_texts(texts, bulk_kwargs={"chunk_size": 1})

        # 1 for index exist, 1 for index create, 3 to index docs
        assert len(store.client.transport.requests) == 5  # type: ignore
Test to make sure the bulk arguments work as expected.
test_elasticsearch/test_server/test_vectorstore/test_vectorstore.py