From 961953ac15df9246edc3e36c7bf2ad436911b06f Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Wed, 25 Aug 2021 13:10:41 -0700 Subject: [PATCH] update parameter name --- .../eth2spec/test/utils/randomized_block_tests.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/utils/randomized_block_tests.py b/tests/core/pyspec/eth2spec/test/utils/randomized_block_tests.py index d0fde4565..4b25fb5ac 100644 --- a/tests/core/pyspec/eth2spec/test/utils/randomized_block_tests.py +++ b/tests/core/pyspec/eth2spec/test/utils/randomized_block_tests.py @@ -283,19 +283,19 @@ def _iter_temporal(spec, description): yield i -def run_generated_randomized_test(spec, state, test_description): - if "setup" not in test_description: - state_randomizer = _resolve_ref(test_description.get("state_randomizer", randomize_state)) - test_description["setup"] = _randomized_scenario_setup(state_randomizer) +def run_generated_randomized_test(spec, state, scenario): + if "setup" not in scenario: + state_randomizer = _resolve_ref(scenario.get("state_randomizer", randomize_state)) + scenario["setup"] = _randomized_scenario_setup(state_randomizer) - for mutation, validation in test_description["setup"]: + for mutation, validation in scenario["setup"]: mutation(spec, state) validation(spec, state) yield "pre", state blocks = [] - for transition in test_description["transitions"]: + for transition in scenario["transitions"]: epochs_to_skip = _iter_temporal(spec, transition["epochs_to_skip"]) for _ in epochs_to_skip: next_epoch(spec, state)