add two missing decorators

This commit is contained in:
protolambda 2020-01-06 01:18:52 +01:00
parent cd7a2149f9
commit 9dd8d1d880
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
2 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from eth2spec.test.context import (
spec_test,
low_balances,
with_custom_state,
)
single_phase)
from eth2spec.test.helpers.attestations import (
get_valid_attestation,
sign_aggregate_attestation,
@ -66,6 +66,7 @@ def test_success(spec, state):
@with_all_phases
@spec_test
@with_custom_state(balances_fn=low_balances, threshold_fn=lambda spec: spec.EJECTION_BALANCE)
@single_phase
def test_success_multi_proposer_index_iterations(spec, state):
state.slot += spec.SLOTS_PER_EPOCH * 2
attestation = get_valid_attestation(spec, state, signed=True)

View File

@ -1,7 +1,7 @@
from copy import deepcopy
from eth2spec.test.context import spec_state_test, with_all_phases, spec_test, \
misc_balances, with_custom_state, default_activation_threshold
misc_balances, with_custom_state, default_activation_threshold, single_phase
from eth2spec.test.helpers.state import (
next_epoch,
next_slot,
@ -96,6 +96,7 @@ def test_full_attestations(spec, state):
@with_all_phases
@spec_test
@with_custom_state(balances_fn=misc_balances, threshold_fn=default_activation_threshold)
@single_phase
def test_full_attestations_misc_balances(spec, state):
attestations = prepare_state_with_full_attestations(spec, state)