only target phase 0 and altair for now

This commit is contained in:
Alex Stokes 2021-08-21 18:24:26 -07:00
parent 9e6a51ef70
commit b17ada2d67
No known key found for this signature in database
GPG Key ID: 99B3D88FD6C55A69
1 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,9 @@
import itertools
import warnings
from random import Random
from tests.core.pyspec.eth2spec.test.helpers.constants import PHASE0, ALTAIR
from typing import Callable
from tests.core.pyspec.eth2spec.test.context import misc_balances_in_default_range, zero_activation_threshold
from tests.core.pyspec.eth2spec.test.context import misc_balances_in_default_range, with_phases, zero_activation_threshold
from eth2spec.test.helpers.multi_operations import (
build_random_block_from_state,
)
@ -315,7 +316,7 @@ def _iter_temporal(spec, callable_or_int):
@pytest_generate_tests_adapter
@with_all_phases
@with_phases([PHASE0, ALTAIR])
@with_custom_state(balances_fn=misc_balances_in_default_range, threshold_fn=zero_activation_threshold)
@spec_test
@single_phase