microraiden.test.fixtures package

Submodules

microraiden.test.fixtures.accounts module

microraiden.test.fixtures.accounts.faucet_address(faucet_private_key)[source]
microraiden.test.fixtures.accounts.faucet_password_path(request)[source]
Return type:str
microraiden.test.fixtures.accounts.faucet_private_key(request, faucet_password_path)[source]
Return type:str
microraiden.test.fixtures.accounts.fund_account(address, eth_allowance, token_allowance, token_contract, web3, wait_for_transaction, faucet_private_key)[source]
microraiden.test.fixtures.accounts.make_account(request, web3, wait_for_transaction, use_tester, token_contract, faucet_private_key, faucet_address)[source]
microraiden.test.fixtures.accounts.private_key_seed(request)[source]
Return type:int
microraiden.test.fixtures.accounts.private_keys(private_key_seed)[source]

Note: using 0 as the seed computes tester coinbase as the first address. This might cause issues, especially on sweeping all of these accounts, as the coinbase cannot be swept.

Return type:List[str]
microraiden.test.fixtures.accounts.receiver_address(receiver_privkey)[source]
microraiden.test.fixtures.accounts.receiver_privkey(make_account, private_keys)[source]
microraiden.test.fixtures.accounts.sender_address(sender_privkey)[source]
microraiden.test.fixtures.accounts.sender_privkey(make_account, private_keys)[source]
microraiden.test.fixtures.accounts.sweep_account(private_key, faucet_address, token_contract, web3, wait_for_transaction)[source]

microraiden.test.fixtures.channel_manager module

microraiden.test.fixtures.channel_manager.channel_manager(web3, receiver_privkey, channel_manager_contract, token_contract, use_tester, mine_sync_event, state_db_path, patched_contract, revert_chain)[source]
microraiden.test.fixtures.channel_manager.start_channel_manager(channel_manager, use_tester, mine_sync_event)[source]

microraiden.test.fixtures.client module

microraiden.test.fixtures.client.client(sender_privkey, channel_manager_address, web3, clean_channels, private_keys, patched_contract, revert_chain)[source]
microraiden.test.fixtures.client.client_address(client_privkey)[source]
microraiden.test.fixtures.client.datadir(tmpdir)[source]
microraiden.test.fixtures.client.rpc_endpoint()[source]
microraiden.test.fixtures.client.rpc_port()[source]

microraiden.test.fixtures.proxy module

class microraiden.test.fixtures.proxy.ExpensiveDoggo(channel_manager, light_client_proxy=None, paywall=None, price=None)[source]

Bases: microraiden.proxy.resources.expensive.Expensive

get(path)[source]
methods = {'GET'}
class microraiden.test.fixtures.proxy.ExpensiveKitten(channel_manager, light_client_proxy=None, paywall=None, price=None)[source]

Bases: microraiden.proxy.resources.expensive.Expensive

get(path)[source]
methods = {'GET'}
class microraiden.test.fixtures.proxy.ExpensiveTeapot(channel_manager, light_client_proxy=None, paywall=None, price=None)[source]

Bases: microraiden.proxy.resources.expensive.Expensive

get(path)[source]
methods = {'GET'}
microraiden.test.fixtures.proxy.doggo_proxy(channel_manager, proxy_ssl, proxy_ssl_certs)[source]
microraiden.test.fixtures.proxy.empty_proxy(channel_manager, wait_for_blocks, use_tester)[source]
microraiden.test.fixtures.proxy.http_doggo_url(api_endpoint_address)[source]
Return type:str
microraiden.test.fixtures.proxy.https_doggo_url(api_endpoint_address)[source]
Return type:str
microraiden.test.fixtures.proxy.proxy_state_filename()[source]
microraiden.test.fixtures.proxy.users_db()[source]

microraiden.test.fixtures.session module

microraiden.test.fixtures.session.session(client, use_tester, api_endpoint_address)[source]

microraiden.test.fixtures.variables module

microraiden.test.fixtures.variables.api_endpoint()[source]

address of a paywall proxy

microraiden.test.fixtures.variables.api_endpoint_address(api_endpoint, api_endpoint_port)[source]
microraiden.test.fixtures.variables.api_endpoint_port()[source]

port the paywall proxy listens on

microraiden.test.fixtures.variables.channel_manager_abi(contract_abis)[source]
microraiden.test.fixtures.variables.channel_manager_bytecode(contract_abis)[source]
microraiden.test.fixtures.variables.clean_channels(request)[source]
microraiden.test.fixtures.variables.contract_abi_path()[source]
microraiden.test.fixtures.variables.contract_abis(contract_abi_path)[source]
microraiden.test.fixtures.variables.deployer_address(deployer_privkey)[source]
microraiden.test.fixtures.variables.deployer_privkey()[source]
microraiden.test.fixtures.variables.init_contract_address()[source]
microraiden.test.fixtures.variables.kovan_block_time()[source]
microraiden.test.fixtures.variables.proxy_ssl()[source]
microraiden.test.fixtures.variables.proxy_ssl_certs(test_dir)[source]
microraiden.test.fixtures.variables.state_db_path(tmpdir)[source]
microraiden.test.fixtures.variables.test_dir(request)[source]
microraiden.test.fixtures.variables.token_abi(contract_abis)[source]
microraiden.test.fixtures.variables.token_bytecode(contract_abis)[source]
microraiden.test.fixtures.variables.use_tester(request)[source]

microraiden.test.fixtures.web3 module

microraiden.test.fixtures.web3.channel_manager_address(use_tester, web3, deployer_address, channel_manager_abi, channel_manager_bytecode, token_address)[source]
microraiden.test.fixtures.web3.channel_manager_contract(web3, channel_manager_address, channel_manager_abi)[source]
microraiden.test.fixtures.web3.deploy_channel_manager_contract(web3, deployer_address, channel_manager_abi, channel_manager_bytecode, token_address)[source]
microraiden.test.fixtures.web3.deploy_token_contract(web3, deployer_address, faucet_address, token_abi, token_bytecode)[source]
microraiden.test.fixtures.web3.disable_requests_loggin()[source]
microraiden.test.fixtures.web3.mine_sync_event()[source]
microraiden.test.fixtures.web3.patched_contract(use_tester, monkeypatch, web3)[source]
microraiden.test.fixtures.web3.revert_chain(web3, use_tester, sender_privkey, receiver_privkey)[source]
microraiden.test.fixtures.web3.token_address(use_tester, web3, deployer_address, faucet_address, token_abi, token_bytecode, channel_manager_abi)[source]
microraiden.test.fixtures.web3.token_contract(web3, token_address, token_abi)[source]
microraiden.test.fixtures.web3.wait(web3, kovan_block_time)[source]
microraiden.test.fixtures.web3.wait_for_blocks(web3, kovan_block_time, use_tester)[source]
microraiden.test.fixtures.web3.wait_for_transaction(wait)[source]
microraiden.test.fixtures.web3.web3(use_tester, faucet_private_key, faucet_address, mine_sync_event)[source]

Module contents