mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 20:55:06 -05:00
Use @with_all_phases
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
from eth2spec.test.context import (
|
||||
PHASE0, ALTAIR, MINIMAL,
|
||||
MINIMAL,
|
||||
is_post_altair,
|
||||
single_phase,
|
||||
spec_test,
|
||||
with_configs,
|
||||
with_phases,
|
||||
with_all_phases,
|
||||
)
|
||||
from eth2spec.test.helpers.deposits import (
|
||||
prepare_full_genesis_deposits,
|
||||
@@ -16,7 +16,7 @@ def get_post_altair_description(spec):
|
||||
return f"Although it's not phase 0, we may use {spec.fork} spec to start testnets."
|
||||
|
||||
|
||||
@with_phases(([PHASE0, ALTAIR]))
|
||||
@with_all_phases
|
||||
@spec_test
|
||||
@single_phase
|
||||
@with_configs([MINIMAL], reason="too slow")
|
||||
@@ -53,7 +53,7 @@ def test_initialize_beacon_state_from_eth1(spec):
|
||||
yield 'state', state
|
||||
|
||||
|
||||
@with_phases([PHASE0, ALTAIR])
|
||||
@with_all_phases
|
||||
@spec_test
|
||||
@single_phase
|
||||
@with_configs([MINIMAL], reason="too slow")
|
||||
@@ -98,7 +98,7 @@ def test_initialize_beacon_state_some_small_balances(spec):
|
||||
yield 'state', state
|
||||
|
||||
|
||||
@with_phases([PHASE0, ALTAIR])
|
||||
@with_all_phases
|
||||
@spec_test
|
||||
@single_phase
|
||||
@with_configs([MINIMAL], reason="too slow")
|
||||
@@ -148,7 +148,7 @@ def test_initialize_beacon_state_one_topup_activation(spec):
|
||||
yield 'state', state
|
||||
|
||||
|
||||
@with_phases([PHASE0, ALTAIR])
|
||||
@with_all_phases
|
||||
@spec_test
|
||||
@single_phase
|
||||
@with_configs([MINIMAL], reason="too slow")
|
||||
@@ -176,7 +176,7 @@ def test_initialize_beacon_state_random_invalid_genesis(spec):
|
||||
yield 'state', state
|
||||
|
||||
|
||||
@with_phases([PHASE0, ALTAIR])
|
||||
@with_all_phases
|
||||
@spec_test
|
||||
@single_phase
|
||||
@with_configs([MINIMAL], reason="too slow")
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from eth2spec.test.context import (
|
||||
PHASE0, ALTAIR, MINIMAL,
|
||||
MINIMAL,
|
||||
is_post_altair,
|
||||
spec_test,
|
||||
single_phase,
|
||||
with_configs,
|
||||
with_phases,
|
||||
with_all_phases,
|
||||
)
|
||||
from eth2spec.test.helpers.deposits import (
|
||||
prepare_full_genesis_deposits,
|
||||
@@ -41,7 +41,7 @@ def run_is_valid_genesis_state(spec, state, valid=True):
|
||||
assert is_valid == valid
|
||||
|
||||
|
||||
@with_phases([PHASE0, ALTAIR])
|
||||
@with_all_phases
|
||||
@spec_test
|
||||
@single_phase
|
||||
@with_configs([MINIMAL], reason="too slow")
|
||||
@@ -54,7 +54,7 @@ def test_is_valid_genesis_state_true(spec):
|
||||
yield from run_is_valid_genesis_state(spec, state, valid=True)
|
||||
|
||||
|
||||
@with_phases([PHASE0, ALTAIR])
|
||||
@with_all_phases
|
||||
@spec_test
|
||||
@single_phase
|
||||
@with_configs([MINIMAL], reason="too slow")
|
||||
@@ -68,7 +68,7 @@ def test_is_valid_genesis_state_false_invalid_timestamp(spec):
|
||||
yield from run_is_valid_genesis_state(spec, state, valid=False)
|
||||
|
||||
|
||||
@with_phases([PHASE0, ALTAIR])
|
||||
@with_all_phases
|
||||
@spec_test
|
||||
@single_phase
|
||||
@with_configs([MINIMAL], reason="too slow")
|
||||
@@ -82,7 +82,7 @@ def test_is_valid_genesis_state_true_more_balance(spec):
|
||||
yield from run_is_valid_genesis_state(spec, state, valid=True)
|
||||
|
||||
|
||||
@with_phases([PHASE0, ALTAIR])
|
||||
@with_all_phases
|
||||
@spec_test
|
||||
@single_phase
|
||||
@with_configs([MINIMAL], reason="too slow")
|
||||
@@ -105,7 +105,7 @@ def test_is_valid_genesis_state_true_one_more_validator(spec):
|
||||
yield from run_is_valid_genesis_state(spec, state, valid=True)
|
||||
|
||||
|
||||
@with_phases([PHASE0, ALTAIR])
|
||||
@with_all_phases
|
||||
@spec_test
|
||||
@single_phase
|
||||
@with_configs([MINIMAL], reason="too slow")
|
||||
|
||||
Reference in New Issue
Block a user