22
33from eth2spec .test .context import (
44 spec_state_test ,
5- with_deneb_and_later ,
5+ with_phases ,
66)
77
8+ from eth2spec .test .helpers .constants import DENEB
9+
810from eth2spec .test .helpers .block import (
911 build_empty_block_for_next_slot ,
1012)
@@ -34,7 +36,7 @@ def get_block_with_blob(spec, state, rng=None):
3436 return block , blobs , blob_kzg_proofs
3537
3638
37- @with_deneb_and_later
39+ @with_phases ([ DENEB ])
3840@spec_state_test
3941def test_simple_blob_data (spec , state ):
4042 rng = Random (1234 )
@@ -69,7 +71,7 @@ def test_simple_blob_data(spec, state):
6971 yield 'steps' , test_steps
7072
7173
72- @with_deneb_and_later
74+ @with_phases ([ DENEB ])
7375@spec_state_test
7476def test_invalid_incorrect_proof (spec , state ):
7577 rng = Random (1234 )
@@ -97,7 +99,7 @@ def test_invalid_incorrect_proof(spec, state):
9799 yield 'steps' , test_steps
98100
99101
100- @with_deneb_and_later
102+ @with_phases ([ DENEB ])
101103@spec_state_test
102104def test_invalid_data_unavailable (spec , state ):
103105 rng = Random (1234 )
@@ -125,7 +127,7 @@ def test_invalid_data_unavailable(spec, state):
125127 yield 'steps' , test_steps
126128
127129
128- @with_deneb_and_later
130+ @with_phases ([ DENEB ])
129131@spec_state_test
130132def test_invalid_wrong_proofs_length (spec , state ):
131133 rng = Random (1234 )
@@ -153,7 +155,7 @@ def test_invalid_wrong_proofs_length(spec, state):
153155 yield 'steps' , test_steps
154156
155157
156- @with_deneb_and_later
158+ @with_phases ([ DENEB ])
157159@spec_state_test
158160def test_invalid_wrong_blobs_length (spec , state ):
159161 rng = Random (1234 )
@@ -178,4 +180,4 @@ def test_invalid_wrong_blobs_length(spec, state):
178180
179181 assert spec .get_head (store ) != signed_block .message .hash_tree_root ()
180182
181- yield 'steps' , test_steps
183+ yield 'steps' , test_steps
0 commit comments