Skip to content

Commit

Permalink
Make transition tests comply to sanity format
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalinin committed Apr 7, 2023
1 parent d78c7ad commit c2473e7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from eth2spec.test.helpers.block import (
build_empty_block_for_next_slot,
sign_block,
)
from eth2spec.test.context import (
spec_state_test,
Expand Down Expand Up @@ -27,7 +28,8 @@ def run_deposit_transition_block(spec, state, block, top_up_keys=[], valid=True)
If ``valid == False``, run expecting ``AssertionError``
"""
yield 'pre', state
yield 'block', block
signed_block = sign_block(spec, state, block, proposer_index=block.proposer_index)
yield 'blocks', [signed_block]

if not valid:
expect_assertion_error(lambda: spec.process_block(state, block))
Expand Down

0 comments on commit c2473e7

Please sign in to comment.