From dcdcf25d8152cd078a9888eeddda4a550e1de009 Mon Sep 17 00:00:00 2001 From: Justin Traglia <95511699+jtraglia@users.noreply.github.com> Date: Tue, 24 Sep 2024 12:54:45 -0500 Subject: [PATCH] Fix electra sanity testgen for blocks (#3939) --- .../pyspec/eth2spec/test/electra/sanity/blocks/__init__.py | 3 +++ tests/generators/sanity/main.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/core/pyspec/eth2spec/test/electra/sanity/blocks/__init__.py b/tests/core/pyspec/eth2spec/test/electra/sanity/blocks/__init__.py index 3c0e060f3d..805b38b2c1 100644 --- a/tests/core/pyspec/eth2spec/test/electra/sanity/blocks/__init__.py +++ b/tests/core/pyspec/eth2spec/test/electra/sanity/blocks/__init__.py @@ -1 +1,4 @@ +# This is a "hack" which allows other test files (e.g., test_deposit_transition.py) +# to reuse the sanity/block test format. +from .test_blocks import * # noqa: F401 F403 from .test_deposit_transition import * # noqa: F401 F403 diff --git a/tests/generators/sanity/main.py b/tests/generators/sanity/main.py index f2485eef53..7b1eff0324 100644 --- a/tests/generators/sanity/main.py +++ b/tests/generators/sanity/main.py @@ -28,6 +28,9 @@ ]} deneb_mods = combine_mods(_new_deneb_mods, capella_mods) + # This is a "hack" which allows other test files (e.g., test_deposit_transition.py) + # to reuse the sanity/block test format. If a new test file is added or removed, + # do not forget to update sanity/block/__init__.py accordingly. _new_electra_mods = {key: 'eth2spec.test.electra.sanity.' + key for key in [ 'blocks', ]}