2019-03-27 16:28:20 +00:00
|
|
|
from typing import Iterable
|
|
|
|
|
2019-04-07 07:26:24 +00:00
|
|
|
from eth_utils import to_dict
|
2019-03-27 16:28:20 +00:00
|
|
|
from gen_base.gen_typing import TestCase
|
|
|
|
|
|
|
|
|
|
|
|
@to_dict
|
2019-04-07 07:26:24 +00:00
|
|
|
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,
|
2019-04-07 07:26:24 +00:00
|
|
|
handler: str,
|
|
|
|
test_cases: Iterable[TestCase]):
|
2019-03-27 16:28:20 +00:00
|
|
|
yield "title", title
|
2019-04-07 07:26:24 +00:00
|
|
|
yield "summary", summary
|
|
|
|
yield "forks_timeline", forks_timeline,
|
|
|
|
yield "forks", forks
|
2019-03-27 16:28:20 +00:00
|
|
|
yield "config", config
|
2019-04-14 10:17:22 +00:00
|
|
|
yield "runner", runner
|
2019-04-07 07:26:24 +00:00
|
|
|
yield "handler", handler
|
2019-03-27 16:28:20 +00:00
|
|
|
yield "test_cases", test_cases
|