update parameter name

This commit is contained in:
Alex Stokes 2021-08-25 13:10:41 -07:00
parent 377797fd0d
commit 961953ac15
No known key found for this signature in database
GPG Key ID: 99B3D88FD6C55A69
1 changed files with 6 additions and 6 deletions

View File

@ -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)