Skip to content

Commit

Permalink
add more acceptance tests for single recipient setup
Browse files Browse the repository at this point in the history
  • Loading branch information
zuzueeka committed Dec 27, 2023
1 parent a23f6a5 commit 38995b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/acceptance_test_single_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from utils.config import (
get_network_name,
)
from utils import lido, deployed_easy_track, log, deployment
from utils import lido, deployed_easy_track, deployed_date_time, log, deployment
from hexbytes import HexBytes

ADD_RECIPIENT_TO_ALLOWED_LIST_ROLE = (
Expand Down Expand Up @@ -45,6 +45,7 @@ def main():

contracts = lido.contracts(network=network_name)
et_contracts = deployed_easy_track.contracts(network=network_name)
date_time_contract = deployed_date_time.date_time_contract(network=network_name)

evm_script_executor = et_contracts.evm_script_executor

Expand Down Expand Up @@ -77,10 +78,13 @@ def main():
registry = AllowedRecipientsRegistry.at(registry_address)
top_up_allowed_recipients = TopUpAllowedRecipients.at(add_allowed_recipient_address)

assert top_up_allowed_recipients.easyTrack() == et_contracts.easy_track
assert top_up_allowed_recipients.finance() == contracts.aragon.finance
assert top_up_allowed_recipients.token() == deploy_config.token
assert top_up_allowed_recipients.allowedRecipientsRegistry() == registry
assert top_up_allowed_recipients.trustedCaller() == deploy_config.trusted_caller

assert registry.bokkyPooBahsDateTimeContract() == date_time_contract
assert len(registry.getAllowedRecipients()) == 1
assert registry.isRecipientAllowed(deploy_config.trusted_caller)

Expand Down

0 comments on commit 38995b7

Please sign in to comment.