Skip to content
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

Merged
merged 22 commits into from
May 27, 2019
Merged

Finish state tests intro #1114

merged 22 commits into from
May 27, 2019

Conversation

protolambda
Copy link
Collaborator

@protolambda protolambda commented May 23, 2019

Introduces:

  • test-format docs for block operations
  • epoch processing test generator (unified py tests)
  • sanity test generator (unified py tests)

TODO (draft):

  • epoch processing crosslinks in mainnet config
  • test-format docs for new generators
  • sanity tests may still have a few inconsistently formatted tests, to be updated

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome!

specs/test_formats/operations/README.md Outdated Show resolved Hide resolved
specs/test_formats/operations/README.md Outdated Show resolved Hide resolved
specs/test_formats/sanity/README.md Show resolved Hide resolved
@protolambda protolambda marked this pull request as ready for review May 24, 2019 13:04
Copy link
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯💯

specs/test_formats/epoch_processing/README.md Outdated Show resolved Hide resolved


def create_suite(transition_name: str, config_name: str, get_cases: Callable[[], Iterable[gen_typing.TestCase]]) \
-> Callable[[str], gen_typing.TestSuiteOutput]:
Copy link
Contributor

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]:

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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]:
Copy link
Contributor

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]:

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above comment

test_generators/sanity/main.py Show resolved Hide resolved
@djrtwo djrtwo merged commit d54b684 into v06x May 27, 2019
@djrtwo djrtwo deleted the finish-state-tests-intro branch May 27, 2019 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants