22 lines
726 B
Python
Raw Normal View History

2024-05-13 14:35:28 +03:00
from eth2spec.test.helpers.constants import DENEB, ELECTRA, EIP7594
2024-04-27 15:32:05 +08:00
from eth2spec.gen_helpers.gen_from_tests.gen import run_state_test_generators, combine_mods
2023-10-31 00:53:53 +08:00
if __name__ == "__main__":
deneb_mods = {key: 'eth2spec.test.deneb.merkle_proof.test_' + key for key in [
'single_merkle_proof',
]}
2024-04-27 15:32:05 +08:00
_new_eip7594_mods = {key: 'eth2spec.test.eip7594.merkle_proof.test_' + key for key in [
'single_merkle_proof',
]}
2024-05-13 14:35:28 +03:00
electra_mods = deneb_mods
2024-04-27 15:32:05 +08:00
eip_7594_mods = combine_mods(_new_eip7594_mods, deneb_mods)
2023-10-31 00:53:53 +08:00
all_mods = {
DENEB: deneb_mods,
2024-05-13 14:35:28 +03:00
ELECTRA: electra_mods,
2024-04-27 15:32:05 +08:00
EIP7594: eip_7594_mods,
2023-10-31 00:53:53 +08:00
}
run_state_test_generators(runner_name="merkle_proof", all_mods=all_mods)