def web3_ipc_persistent(geth_persistent): from web3 import ( Web3, IPCProvider, ) provider = IPCProvider(ipc_path=geth_persistent.ipc_path) provider._geth = geth_persistent web3 = Web3(provider) return web3
def web3_ipc_empty(): from web3 import ( Web3, IPCProvider, ) with setup_testing_geth() as geth: provider = IPCProvider(ipc_path=geth.ipc_path) provider._geth = geth web3 = Web3(provider) yield web3