Merge pull request #2160 from cygnusv/fix-token-agent-test

[Hotfix] Fix missing kwarg rename for NuCypherTokenAgent.approve_transfer()
pull/2161/head
David Núñez 2020-07-30 01:28:19 +02:00 committed by GitHub
commit a293eca622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ from tests.constants import INSECURE_DEVELOPMENT_PASSWORD
@pytest.fixture(scope='module')
def agent(testerchain, test_registry):
def agent(testerchain, test_registry) -> NucypherTokenAgent:
origin, *everybody_else = testerchain.client.accounts
token_deployer = NucypherTokenDeployer(registry=test_registry, deployer_address=origin)
@ -70,7 +70,7 @@ def test_approve_transfer(agent, token_economics, mock_transacting_power_activat
# Approve
receipt = agent.approve_transfer(amount=token_economics.minimum_allowed_locked,
target_address=agent.contract_address,
spender_address=agent.contract_address,
sender_address=someone)
assert receipt['status'] == 1, "Transaction Rejected"