From c2473e7b8a3ca5b346abf7ea93b298345c557e07 Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin Date: Fri, 7 Apr 2023 14:20:28 +0600 Subject: [PATCH] Make transition tests comply to sanity format --- .../test/eip6110/sanity/blocks/test_deposit_transition.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/core/pyspec/eth2spec/test/eip6110/sanity/blocks/test_deposit_transition.py b/tests/core/pyspec/eth2spec/test/eip6110/sanity/blocks/test_deposit_transition.py index 92c3a96b55..2e03f1b0d7 100644 --- a/tests/core/pyspec/eth2spec/test/eip6110/sanity/blocks/test_deposit_transition.py +++ b/tests/core/pyspec/eth2spec/test/eip6110/sanity/blocks/test_deposit_transition.py @@ -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, @@ -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))