Skip to content

Commit

Permalink
test: add events and ipfs check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita P committed Nov 22, 2024
1 parent 52b469a commit 7dcce03
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_2024_11_26.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from utils.test.tx_tracing_helpers import *
from utils.config import contracts, LDO_HOLDER_ADDRESS_FOR_TESTS
from utils.config import contracts
from utils.ipfs import get_lido_vote_cid_from_str
from utils.voting import find_metadata_by_vote_id
from utils.test.easy_track_helpers import create_and_enact_payment_motion
from utils.test.event_validators.allowed_recipients_registry import (
validate_set_limit_parameter_event,
Expand Down Expand Up @@ -275,6 +277,11 @@ def test_vote(helpers, accounts, vote_ids_from_env, stranger):
display_voting_events(vote_tx)
evs = group_voting_events(vote_tx)

metadata = find_metadata_by_vote_id(vote_id)
assert get_lido_vote_cid_from_str(metadata) == "bafkreia2qh6xvoowgwukqfyyer2zz266e2jifxovnddgqawruhe2g5asgi"

assert count_vote_items_by_events(vote_tx, contracts.voting) == 5, "Incorrect voting items count"

validate_set_limit_parameter_event(
evs[0],
limit=atc_budget_limit_after_expected,
Expand Down

0 comments on commit 7dcce03

Please sign in to comment.