disable some attestation tests for attslotrange
This commit is contained in:
parent
bce45c5671
commit
3e2d9a755a
|
@ -4,6 +4,7 @@ venv
|
||||||
.venvs
|
.venvs
|
||||||
.venv
|
.venv
|
||||||
/.pytest_cache
|
/.pytest_cache
|
||||||
|
*.swp
|
||||||
|
|
||||||
build/
|
build/
|
||||||
output/
|
output/
|
||||||
|
|
|
@ -438,6 +438,8 @@ with_deneb_and_later = with_all_phases_from(DENEB)
|
||||||
with_eip6110_and_later = with_all_phases_from(EIP6110)
|
with_eip6110_and_later = with_all_phases_from(EIP6110)
|
||||||
with_attslotrange_and_later = with_all_phases_from(ATTSLOTRANGE)
|
with_attslotrange_and_later = with_all_phases_from(ATTSLOTRANGE)
|
||||||
|
|
||||||
|
with_all_phases_except_attslotrange = with_all_phases_except(ATTSLOTRANGE)
|
||||||
|
|
||||||
|
|
||||||
def _get_preset_targets(kw):
|
def _get_preset_targets(kw):
|
||||||
preset_name = DEFAULT_TEST_PRESET
|
preset_name = DEFAULT_TEST_PRESET
|
||||||
|
|
|
@ -2,6 +2,9 @@ from eth2spec.test.context import (
|
||||||
spec_state_test,
|
spec_state_test,
|
||||||
always_bls, never_bls,
|
always_bls, never_bls,
|
||||||
with_all_phases,
|
with_all_phases,
|
||||||
|
# Note, if attslotrange gets included, this will need to be
|
||||||
|
# 'with all phases up until attslotrange'
|
||||||
|
with_all_phases_except_attslotrange,
|
||||||
spec_test,
|
spec_test,
|
||||||
low_balances,
|
low_balances,
|
||||||
with_custom_state,
|
with_custom_state,
|
||||||
|
@ -93,7 +96,7 @@ def test_invalid_before_inclusion_delay(spec, state):
|
||||||
yield from run_attestation_processing(spec, state, attestation, valid=False)
|
yield from run_attestation_processing(spec, state, attestation, valid=False)
|
||||||
|
|
||||||
|
|
||||||
@with_all_phases
|
@with_all_phases_except_attslotrange
|
||||||
@spec_state_test
|
@spec_state_test
|
||||||
def test_invalid_after_epoch_slots(spec, state):
|
def test_invalid_after_epoch_slots(spec, state):
|
||||||
attestation = get_valid_attestation(spec, state, signed=True)
|
attestation = get_valid_attestation(spec, state, signed=True)
|
||||||
|
@ -391,7 +394,7 @@ def test_correct_attestation_included_at_one_epoch_delay(spec, state):
|
||||||
yield from run_attestation_processing(spec, state, attestation)
|
yield from run_attestation_processing(spec, state, attestation)
|
||||||
|
|
||||||
|
|
||||||
@with_all_phases
|
@with_all_phases_except_attslotrange
|
||||||
@spec_state_test
|
@spec_state_test
|
||||||
def test_invalid_correct_attestation_included_after_epoch_delay(spec, state):
|
def test_invalid_correct_attestation_included_after_epoch_delay(spec, state):
|
||||||
attestation = get_valid_attestation(spec, state, signed=True)
|
attestation = get_valid_attestation(spec, state, signed=True)
|
||||||
|
@ -430,7 +433,7 @@ def test_incorrect_head_included_at_sqrt_epoch_delay(spec, state):
|
||||||
yield from run_attestation_processing(spec, state, attestation)
|
yield from run_attestation_processing(spec, state, attestation)
|
||||||
|
|
||||||
|
|
||||||
@with_all_phases
|
@with_all_phases_except_attslotrange
|
||||||
@spec_state_test
|
@spec_state_test
|
||||||
def test_incorrect_head_included_at_epoch_delay(spec, state):
|
def test_incorrect_head_included_at_epoch_delay(spec, state):
|
||||||
attestation = get_valid_attestation(spec, state, signed=False)
|
attestation = get_valid_attestation(spec, state, signed=False)
|
||||||
|
@ -442,7 +445,7 @@ def test_incorrect_head_included_at_epoch_delay(spec, state):
|
||||||
yield from run_attestation_processing(spec, state, attestation)
|
yield from run_attestation_processing(spec, state, attestation)
|
||||||
|
|
||||||
|
|
||||||
@with_all_phases
|
@with_all_phases_except_attslotrange
|
||||||
@spec_state_test
|
@spec_state_test
|
||||||
def test_invalid_incorrect_head_included_after_epoch_delay(spec, state):
|
def test_invalid_incorrect_head_included_after_epoch_delay(spec, state):
|
||||||
attestation = get_valid_attestation(spec, state, signed=False)
|
attestation = get_valid_attestation(spec, state, signed=False)
|
||||||
|
@ -499,7 +502,7 @@ def test_incorrect_head_and_target_included_at_epoch_delay(spec, state):
|
||||||
yield from run_attestation_processing(spec, state, attestation)
|
yield from run_attestation_processing(spec, state, attestation)
|
||||||
|
|
||||||
|
|
||||||
@with_all_phases
|
@with_all_phases_except_attslotrange
|
||||||
@spec_state_test
|
@spec_state_test
|
||||||
def test_invalid_incorrect_head_and_target_included_after_epoch_delay(spec, state):
|
def test_invalid_incorrect_head_and_target_included_after_epoch_delay(spec, state):
|
||||||
attestation = get_valid_attestation(spec, state, signed=False)
|
attestation = get_valid_attestation(spec, state, signed=False)
|
||||||
|
@ -553,7 +556,7 @@ def test_incorrect_target_included_at_epoch_delay(spec, state):
|
||||||
yield from run_attestation_processing(spec, state, attestation)
|
yield from run_attestation_processing(spec, state, attestation)
|
||||||
|
|
||||||
|
|
||||||
@with_all_phases
|
@with_all_phases_except_attslotrange
|
||||||
@spec_state_test
|
@spec_state_test
|
||||||
def test_invalid_incorrect_target_included_after_epoch_delay(spec, state):
|
def test_invalid_incorrect_target_included_after_epoch_delay(spec, state):
|
||||||
attestation = get_valid_attestation(spec, state, signed=False)
|
attestation = get_valid_attestation(spec, state, signed=False)
|
||||||
|
|
Loading…
Reference in New Issue