eth2.0-specs/tests/generators/random/main.py

23 lines
686 B
Python
Raw Normal View History

2022-01-28 03:08:59 +00:00
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX
from eth2spec.gen_helpers.gen_from_tests.gen import run_state_test_generators
if __name__ == "__main__":
phase_0_mods = {key: 'eth2spec.test.phase0.random.test_' + key for key in [
'random',
]}
altair_mods = {key: 'eth2spec.test.altair.random.test_' + key for key in [
'random',
]}
2022-01-28 03:08:59 +00:00
bellatrix_mods = {key: 'eth2spec.test.bellatrix.random.test_' + key for key in [
'random',
]}
all_mods = {
PHASE0: phase_0_mods,
ALTAIR: altair_mods,
2022-01-28 03:08:59 +00:00
BELLATRIX: bellatrix_mods,
}
run_state_test_generators(runner_name="random", all_mods=all_mods)