This setup_script used the sendtoaddress and getnewaddress RPCs which are not available if the node is built without the wallet. We can use the MiniWallet from the test framework instead which works without the node's wallet.
The only notable change in behaviour is that now the transactions are all sent to the same address. This does not seem to affect the corresponding integration test.