Skip to content

Commit dcdcf25

Browse files
authored
Fix electra sanity testgen for blocks (#3939)
1 parent 865dff0 commit dcdcf25

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# This is a "hack" which allows other test files (e.g., test_deposit_transition.py)
2+
# to reuse the sanity/block test format.
3+
from .test_blocks import * # noqa: F401 F403
14
from .test_deposit_transition import * # noqa: F401 F403

tests/generators/sanity/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
]}
2929
deneb_mods = combine_mods(_new_deneb_mods, capella_mods)
3030

31+
# This is a "hack" which allows other test files (e.g., test_deposit_transition.py)
32+
# to reuse the sanity/block test format. If a new test file is added or removed,
33+
# do not forget to update sanity/block/__init__.py accordingly.
3134
_new_electra_mods = {key: 'eth2spec.test.electra.sanity.' + key for key in [
3235
'blocks',
3336
]}

0 commit comments

Comments
 (0)