File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
tests/spec_tests/devnet/state_transition Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 11"""Single block processing tests for the devnet fork."""
22
33import pytest
4- from lean_spec_tests import BlockBuilder , StateTransitionTestFiller
4+ from lean_spec_tests import BlockBuilder , StateExpectation , StateTransitionTestFiller
55
66from lean_spec .subspecs .containers .slot import Slot
77from lean_spec .subspecs .containers .state import State
@@ -30,6 +30,9 @@ def test_single_empty_block(state_transition_test: StateTransitionTestFiller) ->
3030 state_transition_test (
3131 pre = genesis ,
3232 blocks = [block ],
33+ post = StateExpectation (
34+ slot = Slot (1 ),
35+ ),
3336 )
3437
3538
@@ -48,6 +51,9 @@ def test_single_block_with_slot_gap(state_transition_test: StateTransitionTestFi
4851 state_transition_test (
4952 pre = genesis ,
5053 blocks = [block ],
54+ post = StateExpectation (
55+ slot = Slot (5 ),
56+ ),
5157 )
5258
5359
@@ -73,4 +79,8 @@ def test_sequential_blocks(state_transition_test: StateTransitionTestFiller) ->
7379 state_transition_test (
7480 pre = genesis ,
7581 blocks = [block1 , block2 , block3 ],
82+ post = StateExpectation (
83+ slot = Slot (3 ),
84+ validator_count = 4 ,
85+ ),
7686 )
You can’t perform that action at this time.
0 commit comments