rearrange hysteresis tests
This commit is contained in:
parent
eedb5c1674
commit
7602a52ecf
|
@ -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)
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue