-
Notifications
You must be signed in to change notification settings - Fork 920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finish state tests intro #1114
Finish state tests intro #1114
Conversation
…ocs for epoch sub-transition testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome!
test_libs/pyspec/eth2spec/test/epoch_processing/test_process_crosslinks.py
Outdated
Show resolved
Hide resolved
test_libs/pyspec/eth2spec/test/epoch_processing/test_process_registry_updates.py
Outdated
Show resolved
Hide resolved
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
…rosslinks.py Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯💯
|
||
|
||
def create_suite(transition_name: str, config_name: str, get_cases: Callable[[], Iterable[gen_typing.TestCase]]) \ | ||
-> Callable[[str], gen_typing.TestSuiteOutput]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: IMO avoid \
here
def create_suite(
transition_name: str,
config_name: str,
get_cases: Callable[[],
Iterable[gen_typing.TestCase]]) -> Callable[[str], gen_typing.TestSuiteOutput]:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My IDE gives a PEP8 warning with that suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And formatter adds 20 spaces of indentation to the last line of that suggestion, and then it's happy... I'd rather keep it as-is.
|
||
|
||
def create_suite(operation_name: str, config_name: str, get_cases: Callable[[], Iterable[gen_typing.TestCase]]) \ | ||
-> Callable[[str], gen_typing.TestSuiteOutput]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
def create_suite(
transition_name: str,
config_name: str,
get_cases: Callable[[],
Iterable[gen_typing.TestCase]]) -> Callable[[str], gen_typing.TestSuiteOutput]:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above comment
test_libs/pyspec/eth2spec/test/epoch_processing/test_process_crosslinks.py
Outdated
Show resolved
Hide resolved
test_libs/pyspec/eth2spec/test/epoch_processing/test_process_registry_updates.py
Show resolved
Hide resolved
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
Introduces:
TODO (draft):