Test stub for @cygnusv

pull/1989/head
Kieran Prasch 2020-05-15 11:27:30 -07:00
parent 3344ed2cbd
commit 4619dd20a1
No known key found for this signature in database
GPG Key ID: 199AB839D4125A62
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
import pytest
from nucypher.blockchain.eth.actors import StakeHolder
from nucypher.blockchain.eth.registry import IndividualAllocationRegistry
from nucypher.cli.actions.select import handle_client_account_for_staking
from nucypher.config.constants import TEMPORARY_DOMAIN
@pytest.mark.skip(reason="David, please send help.")
def test_handle_client_account_for_staking(test_emitter, test_registry, test_registry_source_manager):
stakeholder = StakeHolder(registry=test_registry)
force = False
registry = IndividualAllocationRegistry(beneficiary_address='0xdeadbeef',
contract_address='0xdeadbeef',
network=TEMPORARY_DOMAIN)
result = handle_client_account_for_staking(emitter=test_emitter,
stakeholder=stakeholder,
staking_address='0xdeadbeef',
individual_allocation=registry,
force=force)
assert result