diff --git a/tests/core/pyspec/eth2spec/test/eip7251/epoch_processing/test_process_effective_balance_updates.py b/tests/core/pyspec/eth2spec/test/eip7251/epoch_processing/test_process_effective_balance_updates.py new file mode 100644 index 000000000..9d6205e17 --- /dev/null +++ b/tests/core/pyspec/eth2spec/test/eip7251/epoch_processing/test_process_effective_balance_updates.py @@ -0,0 +1,9 @@ +from eth2spec.test.context import spec_state_test, with_eip7251_and_later +from eth2spec.test.phase0.epoch_processing.test_process_effective_balance_updates import run_test_effective_balance_hysteresis + + + +@with_eip7251_and_later +@spec_state_test +def test_effective_balance_hysteresis_with_compounding_credentials(spec, state): + run_test_effective_balance_hysteresis(spec, state, with_compounding_credentials=True) diff --git a/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_effective_balance_updates.py b/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_effective_balance_updates.py index 087ef5eff..3e77d113e 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_effective_balance_updates.py +++ b/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_effective_balance_updates.py @@ -1,4 +1,4 @@ -from eth2spec.test.context import spec_state_test, with_all_phases, with_eip7251_and_later +from eth2spec.test.context import spec_state_test, with_all_phases from eth2spec.test.helpers.epoch_processing import run_epoch_processing_to from eth2spec.test.helpers.withdrawals import ( set_compounding_withdrawal_credential, @@ -11,12 +11,6 @@ def test_effective_balance_hysteresis(spec, state): run_test_effective_balance_hysteresis(spec, state) -@with_eip7251_and_later -@spec_state_test -def test_effective_balance_hysteresis_with_compounding_credentials(spec, state): - run_test_effective_balance_hysteresis(spec, state, with_compounding_credentials=True) - - def run_test_effective_balance_hysteresis(spec, state, with_compounding_credentials=False): assert is_post_eip7251(spec) or not with_compounding_credentials