From 925f0508ce068611047a284005c269197b7505fd Mon Sep 17 00:00:00 2001 From: protolambda Date: Tue, 18 May 2021 20:13:19 +0200 Subject: [PATCH] test generator fixes --- tests/core/pyspec/eth2spec/test/helpers/altair/__init__.py | 0 tests/generators/finality/main.py | 2 +- tests/generators/shuffling/main.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 tests/core/pyspec/eth2spec/test/helpers/altair/__init__.py diff --git a/tests/core/pyspec/eth2spec/test/helpers/altair/__init__.py b/tests/core/pyspec/eth2spec/test/helpers/altair/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/generators/finality/main.py b/tests/generators/finality/main.py index 39f454338..b4c8da39a 100644 --- a/tests/generators/finality/main.py +++ b/tests/generators/finality/main.py @@ -10,7 +10,7 @@ if __name__ == "__main__": all_mods = { PHASE0: phase_0_mods, ALTAIR: altair_mods, - MERGE: spec_merge, + MERGE: merge_mods, } run_state_test_generators(runner_name="finality", all_mods=all_mods) diff --git a/tests/generators/shuffling/main.py b/tests/generators/shuffling/main.py index 1b363f67c..3b0d5a64d 100644 --- a/tests/generators/shuffling/main.py +++ b/tests/generators/shuffling/main.py @@ -39,7 +39,7 @@ def create_provider(preset_name: PresetBaseName) -> gen_typing.TestProvider: spec = spec_minimal else: raise Exception(f"unrecognized preset: {preset_name}") - for (case_name, case_fn) in shuffling_test_cases(): + for (case_name, case_fn) in shuffling_test_cases(spec): yield gen_typing.TestCase( fork_name=PHASE0, preset_name=preset_name,