mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-22 07:18:10 +00:00
Use @with_all_phases
This commit is contained in:
parent
734863a6d6
commit
64dbcdce35
@ -1,10 +1,10 @@
|
|||||||
from eth2spec.test.context import (
|
from eth2spec.test.context import (
|
||||||
PHASE0, ALTAIR, MINIMAL,
|
MINIMAL,
|
||||||
is_post_altair,
|
is_post_altair,
|
||||||
single_phase,
|
single_phase,
|
||||||
spec_test,
|
spec_test,
|
||||||
with_configs,
|
with_configs,
|
||||||
with_phases,
|
with_all_phases,
|
||||||
)
|
)
|
||||||
from eth2spec.test.helpers.deposits import (
|
from eth2spec.test.helpers.deposits import (
|
||||||
prepare_full_genesis_deposits,
|
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."
|
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
|
@spec_test
|
||||||
@single_phase
|
@single_phase
|
||||||
@with_configs([MINIMAL], reason="too slow")
|
@with_configs([MINIMAL], reason="too slow")
|
||||||
@ -53,7 +53,7 @@ def test_initialize_beacon_state_from_eth1(spec):
|
|||||||
yield 'state', state
|
yield 'state', state
|
||||||
|
|
||||||
|
|
||||||
@with_phases([PHASE0, ALTAIR])
|
@with_all_phases
|
||||||
@spec_test
|
@spec_test
|
||||||
@single_phase
|
@single_phase
|
||||||
@with_configs([MINIMAL], reason="too slow")
|
@with_configs([MINIMAL], reason="too slow")
|
||||||
@ -98,7 +98,7 @@ def test_initialize_beacon_state_some_small_balances(spec):
|
|||||||
yield 'state', state
|
yield 'state', state
|
||||||
|
|
||||||
|
|
||||||
@with_phases([PHASE0, ALTAIR])
|
@with_all_phases
|
||||||
@spec_test
|
@spec_test
|
||||||
@single_phase
|
@single_phase
|
||||||
@with_configs([MINIMAL], reason="too slow")
|
@with_configs([MINIMAL], reason="too slow")
|
||||||
@ -148,7 +148,7 @@ def test_initialize_beacon_state_one_topup_activation(spec):
|
|||||||
yield 'state', state
|
yield 'state', state
|
||||||
|
|
||||||
|
|
||||||
@with_phases([PHASE0, ALTAIR])
|
@with_all_phases
|
||||||
@spec_test
|
@spec_test
|
||||||
@single_phase
|
@single_phase
|
||||||
@with_configs([MINIMAL], reason="too slow")
|
@with_configs([MINIMAL], reason="too slow")
|
||||||
@ -176,7 +176,7 @@ def test_initialize_beacon_state_random_invalid_genesis(spec):
|
|||||||
yield 'state', state
|
yield 'state', state
|
||||||
|
|
||||||
|
|
||||||
@with_phases([PHASE0, ALTAIR])
|
@with_all_phases
|
||||||
@spec_test
|
@spec_test
|
||||||
@single_phase
|
@single_phase
|
||||||
@with_configs([MINIMAL], reason="too slow")
|
@with_configs([MINIMAL], reason="too slow")
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
from eth2spec.test.context import (
|
from eth2spec.test.context import (
|
||||||
PHASE0, ALTAIR, MINIMAL,
|
MINIMAL,
|
||||||
is_post_altair,
|
is_post_altair,
|
||||||
spec_test,
|
spec_test,
|
||||||
single_phase,
|
single_phase,
|
||||||
with_configs,
|
with_configs,
|
||||||
with_phases,
|
with_all_phases,
|
||||||
)
|
)
|
||||||
from eth2spec.test.helpers.deposits import (
|
from eth2spec.test.helpers.deposits import (
|
||||||
prepare_full_genesis_deposits,
|
prepare_full_genesis_deposits,
|
||||||
@ -41,7 +41,7 @@ def run_is_valid_genesis_state(spec, state, valid=True):
|
|||||||
assert is_valid == valid
|
assert is_valid == valid
|
||||||
|
|
||||||
|
|
||||||
@with_phases([PHASE0, ALTAIR])
|
@with_all_phases
|
||||||
@spec_test
|
@spec_test
|
||||||
@single_phase
|
@single_phase
|
||||||
@with_configs([MINIMAL], reason="too slow")
|
@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)
|
yield from run_is_valid_genesis_state(spec, state, valid=True)
|
||||||
|
|
||||||
|
|
||||||
@with_phases([PHASE0, ALTAIR])
|
@with_all_phases
|
||||||
@spec_test
|
@spec_test
|
||||||
@single_phase
|
@single_phase
|
||||||
@with_configs([MINIMAL], reason="too slow")
|
@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)
|
yield from run_is_valid_genesis_state(spec, state, valid=False)
|
||||||
|
|
||||||
|
|
||||||
@with_phases([PHASE0, ALTAIR])
|
@with_all_phases
|
||||||
@spec_test
|
@spec_test
|
||||||
@single_phase
|
@single_phase
|
||||||
@with_configs([MINIMAL], reason="too slow")
|
@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)
|
yield from run_is_valid_genesis_state(spec, state, valid=True)
|
||||||
|
|
||||||
|
|
||||||
@with_phases([PHASE0, ALTAIR])
|
@with_all_phases
|
||||||
@spec_test
|
@spec_test
|
||||||
@single_phase
|
@single_phase
|
||||||
@with_configs([MINIMAL], reason="too slow")
|
@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)
|
yield from run_is_valid_genesis_state(spec, state, valid=True)
|
||||||
|
|
||||||
|
|
||||||
@with_phases([PHASE0, ALTAIR])
|
@with_all_phases
|
||||||
@spec_test
|
@spec_test
|
||||||
@single_phase
|
@single_phase
|
||||||
@with_configs([MINIMAL], reason="too slow")
|
@with_configs([MINIMAL], reason="too slow")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user