eth2.0-specs/test_libs/gen_helpers/gen_base/gen_suite.py

23 lines
616 B
Python
Raw Normal View History

from typing import Iterable
from eth_utils import to_dict
from gen_base.gen_typing import TestCase
@to_dict
def render_suite(*,
title: str, summary: str,
forks_timeline: str, forks: Iterable[str],
config: str,
2019-04-14 10:17:22 +00:00
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
2019-04-14 10:17:22 +00:00
yield "runner", runner
yield "handler", handler
yield "test_cases", test_cases