mirror of https://github.com/nucypher/nucypher.git
Test touch ups
parent
cba680fc1e
commit
1e63ce6b2c
|
@ -225,7 +225,7 @@ group_actor_options = group_options(
|
||||||
provider_uri=option_provider_uri(),
|
provider_uri=option_provider_uri(),
|
||||||
gas_strategy=option_gas_strategy,
|
gas_strategy=option_gas_strategy,
|
||||||
signer_uri=option_signer_uri,
|
signer_uri=option_signer_uri,
|
||||||
contract_name=option_contract_name(required=True),
|
contract_name=option_contract_name(required=False), # TODO: Make this required see Issue #2314
|
||||||
poa=option_poa,
|
poa=option_poa,
|
||||||
force=option_force,
|
force=option_force,
|
||||||
hw_wallet=option_hw_wallet,
|
hw_wallet=option_hw_wallet,
|
||||||
|
@ -391,7 +391,7 @@ def upgrade(general_config, actor_options, retarget, target_address, ignore_depl
|
||||||
raise click.BadArgumentUsage(message="--target-address is required when using --retarget")
|
raise click.BadArgumentUsage(message="--target-address is required when using --retarget")
|
||||||
if not actor_options.force:
|
if not actor_options.force:
|
||||||
click.confirm(CONFIRM_RETARGET.format(contract_name=contract_name, target_address=target_address), abort=True)
|
click.confirm(CONFIRM_RETARGET.format(contract_name=contract_name, target_address=target_address), abort=True)
|
||||||
receipt = ADMINISTRATOR.retarget_proxy(contract_name=contract_name,target_address=target_address)
|
receipt = ADMINISTRATOR.retarget_proxy(contract_name=contract_name,target_address=target_address, confirmations=0)
|
||||||
message = SUCCESSFUL_RETARGET.format(contract_name=contract_name, target_address=target_address)
|
message = SUCCESSFUL_RETARGET.format(contract_name=contract_name, target_address=target_address)
|
||||||
emitter.message(message, color='green')
|
emitter.message(message, color='green')
|
||||||
paint_receipt_summary(emitter=emitter, receipt=receipt)
|
paint_receipt_summary(emitter=emitter, receipt=receipt)
|
||||||
|
|
|
@ -92,9 +92,9 @@ def test_upgrade_contracts(click_runner, test_registry_source_manager, test_regi
|
||||||
cli_action = 'upgrade'
|
cli_action = 'upgrade'
|
||||||
base_command = ('--registry-infile', registry_filepath,
|
base_command = ('--registry-infile', registry_filepath,
|
||||||
'--provider', TEST_PROVIDER_URI,
|
'--provider', TEST_PROVIDER_URI,
|
||||||
'--confirmations', 30,
|
'--confirmations', 1,
|
||||||
'--network', TEMPORARY_DOMAIN,
|
'--network', TEMPORARY_DOMAIN,
|
||||||
'--force') # skip some preflights
|
'--force') # skip registry preflight for tests
|
||||||
|
|
||||||
#
|
#
|
||||||
# Stage Upgrades
|
# Stage Upgrades
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
import os
|
import os
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
from nucypher.config.constants import TEMPORARY_DOMAIN
|
||||||
from nucypher.blockchain.eth.clients import EthereumClient
|
from nucypher.blockchain.eth.clients import EthereumClient
|
||||||
from nucypher.blockchain.eth.agents import (AdjudicatorAgent, ContractAgency, PolicyManagerAgent, StakingEscrowAgent)
|
from nucypher.blockchain.eth.agents import (AdjudicatorAgent, ContractAgency, PolicyManagerAgent, StakingEscrowAgent)
|
||||||
from nucypher.blockchain.eth.constants import (ADJUDICATOR_CONTRACT_NAME, DISPATCHER_CONTRACT_NAME,
|
from nucypher.blockchain.eth.constants import (ADJUDICATOR_CONTRACT_NAME, DISPATCHER_CONTRACT_NAME,
|
||||||
|
@ -52,7 +53,6 @@ def test_nucypher_deploy_inspect_no_deployments(click_runner, testerchain, new_l
|
||||||
assert 'not enrolled' in result.output
|
assert 'not enrolled' in result.output
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip('See Issue #2314')
|
|
||||||
def test_set_range(click_runner, testerchain, agency_local_registry):
|
def test_set_range(click_runner, testerchain, agency_local_registry):
|
||||||
|
|
||||||
minimum, default, maximum = 10, 20, 30
|
minimum, default, maximum = 10, 20, 30
|
||||||
|
@ -210,7 +210,8 @@ def test_manual_proxy_retargeting(monkeypatch, testerchain, click_runner, token_
|
||||||
'--target-address', untargeted_deployment.address,
|
'--target-address', untargeted_deployment.address,
|
||||||
'--provider', TEST_PROVIDER_URI,
|
'--provider', TEST_PROVIDER_URI,
|
||||||
'--registry-infile', ALTERNATE_REGISTRY_FILEPATH,
|
'--registry-infile', ALTERNATE_REGISTRY_FILEPATH,
|
||||||
'--confirmations', 4)
|
'--confirmations', 4,
|
||||||
|
'--network', TEMPORARY_DOMAIN)
|
||||||
|
|
||||||
# Upgrade
|
# Upgrade
|
||||||
user_input = '0\n' + 'Y\n' + 'Y\n'
|
user_input = '0\n' + 'Y\n' + 'Y\n'
|
||||||
|
@ -244,7 +245,7 @@ def test_batch_deposits(click_runner,
|
||||||
deploy_command,
|
deploy_command,
|
||||||
input=user_input,
|
input=user_input,
|
||||||
catch_exceptions=False)
|
catch_exceptions=False)
|
||||||
assert result.exit_code == 0
|
assert result.exit_code == 0, result.output
|
||||||
for allocation_address in testerchain.unassigned_accounts:
|
for allocation_address in testerchain.unassigned_accounts:
|
||||||
assert allocation_address in result.output
|
assert allocation_address in result.output
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue