rearrange hysteresis tests

This commit is contained in:
fradamt 2024-04-12 14:53:25 +02:00
parent eedb5c1674
commit 7602a52ecf
2 changed files with 10 additions and 7 deletions

View File

@ -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)

View File

@ -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