Skip to content

Commit

Permalink
Fix runner/handler references
Browse files Browse the repository at this point in the history
  • Loading branch information
protolambda committed Apr 14, 2019
1 parent 18d54fa commit 514d8f9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
6 changes: 6 additions & 0 deletions test_generators/bls/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def bls_msg_hash_uncompressed_suite(configs_path: str) -> gen_typing.TestSuiteOu
forks_timeline="mainnet",
forks=["phase0"],
config="mainnet",
runner="bls",
handler="msg_hash_uncompressed",
test_cases=case01_message_hash_G2_uncompressed()))

Expand All @@ -177,6 +178,7 @@ def bls_msg_hash_compressed_suite(configs_path: str) -> gen_typing.TestSuiteOutp
forks_timeline="mainnet",
forks=["phase0"],
config="mainnet",
runner="bls",
handler="msg_hash_compressed",
test_cases=case02_message_hash_G2_compressed()))

Expand All @@ -189,6 +191,7 @@ def bls_priv_to_pub_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="mainnet",
forks=["phase0"],
config="mainnet",
runner="bls",
handler="priv_to_pub",
test_cases=case03_private_to_public_key()))

Expand All @@ -200,6 +203,7 @@ def bls_sign_msg_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="mainnet",
forks=["phase0"],
config="mainnet",
runner="bls",
handler="sign_msg",
test_cases=case04_sign_messages()))

Expand All @@ -211,6 +215,7 @@ def bls_aggregate_sigs_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="mainnet",
forks=["phase0"],
config="mainnet",
runner="bls",
handler="aggregate_sigs",
test_cases=case06_aggregate_sigs()))

Expand All @@ -222,6 +227,7 @@ def bls_aggregate_pubkeys_suite(configs_path: str) -> gen_typing.TestSuiteOutput
forks_timeline="mainnet",
forks=["phase0"],
config="mainnet",
runner="bls",
handler="aggregate_pubkeys",
test_cases=case07_aggregate_pubkeys()))

Expand Down
6 changes: 4 additions & 2 deletions test_generators/operations/deposits.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ def mini_deposits_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="testing",
forks=["phase0"],
config="minimal",
handler="core",
runner="operations",
handler="deposits",
test_cases=deposit_cases()))


Expand All @@ -169,5 +170,6 @@ def full_deposits_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="mainnet",
forks=["phase0"],
config="mainnet",
handler="core",
runner="operations",
handler="deposits",
test_cases=deposit_cases()))
2 changes: 2 additions & 0 deletions test_generators/shuffling/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def mini_shuffling_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="testing",
forks=["phase0"],
config="minimal",
runner="shuffling",
handler="core",
test_cases=shuffling_test_cases()))

Expand All @@ -44,6 +45,7 @@ def full_shuffling_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="mainnet",
forks=["phase0"],
config="mainnet",
runner="shuffling",
handler="core",
test_cases=shuffling_test_cases()))

Expand Down
9 changes: 6 additions & 3 deletions test_generators/ssz/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def ssz_random_uint_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline= "mainnet",
forks=["phase0"],
config="mainnet",
handler="core",
runner="ssz",
handler="uint",
test_cases=generate_random_uint_test_cases()))

def ssz_wrong_uint_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
Expand All @@ -24,7 +25,8 @@ def ssz_wrong_uint_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline= "mainnet",
forks=["phase0"],
config="mainnet",
handler="core",
runner="ssz",
handler="uint",
test_cases=generate_uint_wrong_length_test_cases()))

def ssz_uint_bounds_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
Expand All @@ -34,7 +36,8 @@ def ssz_uint_bounds_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline= "mainnet",
forks=["phase0"],
config="mainnet",
handler="core",
runner="ssz",
handler="uint",
test_cases=generate_uint_bounds_test_cases() + generate_uint_out_of_bounds_test_cases()))


Expand Down
2 changes: 2 additions & 0 deletions test_libs/gen_helpers/gen_base/gen_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ def render_suite(*,
title: str, summary: str,
forks_timeline: str, forks: Iterable[str],
config: str,
runner: str,
handler: str,
test_cases: Iterable[TestCase]):
yield "title", title
yield "summary", summary
yield "forks_timeline", forks_timeline,
yield "forks", forks
yield "config", config
yield "runner", runner
yield "handler", handler
yield "test_cases", test_cases

0 comments on commit 514d8f9

Please sign in to comment.