From c976561b91e235c68a3e00f1cbccb00b55322554 Mon Sep 17 00:00:00 2001 From: zuzueeka Date: Tue, 8 Aug 2023 17:06:22 +0300 Subject: [PATCH] test tweaks --- tests/test_2023_08_08.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/test_2023_08_08.py b/tests/test_2023_08_08.py index c8ff9d65..7e569fc0 100644 --- a/tests/test_2023_08_08.py +++ b/tests/test_2023_08_08.py @@ -66,6 +66,8 @@ def test_vote(helpers, accounts, vote_ids_from_env, interface, ldo_holder, stran owner=contracts.agent.address, spender=contracts.burner.address, amount=stETH_to_burn ) + assert contracts.node_operators_registry.getNodeOperatorsCount() == 30 + assert contracts.lido.allowance(contracts.agent, contracts.burner) == 0 COVER_INDEX = 0 @@ -81,6 +83,13 @@ def test_vote(helpers, accounts, vote_ids_from_env, interface, ldo_holder, stran agent_shares_before = contracts.lido.sharesOf(contracts.agent) + factories_list_before = contracts.easy_track.getEVMScriptFactories() + assert len(factories_list_before) == 13 + + assert rewards_share_topup_factory not in factories_list_before + assert rewards_share_add_recipient_factory not in factories_list_before + assert rewards_share_remove_recipient_factory not in factories_list_before + # START VOTE vote_ids = [] if len(vote_ids_from_env) > 0: @@ -97,6 +106,7 @@ def test_vote(helpers, accounts, vote_ids_from_env, interface, ldo_holder, stran assert contracts.acl.hasPermission(contracts.agent, contracts.node_operators_registry, MANAGE_NODE_OPERATOR_ROLE) + assert contracts.node_operators_registry.getNodeOperatorsCount() == 32 no1 = contracts.node_operators_registry.getNodeOperator(new_node_op_1.id, True) assert no1["active"] is True @@ -126,7 +136,7 @@ def test_vote(helpers, accounts, vote_ids_from_env, interface, ldo_holder, stran agent_shares_after = contracts.lido.sharesOf(contracts.agent) agent_lido_alowance_after = contracts.lido.allowance(contracts.agent.address, contracts.burner.address) - assert almostEqWithDiff(agent_lido_alowance_after, 0, 2) + assert agent_lido_alowance_after == 0 burner_total_burnt_for_cover_after = contracts.burner.getCoverSharesBurnt() assert burner_total_burnt_for_cover_after == burner_total_burnt_for_cover_before