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

GH-98831: Add some tests for generate_cases.py #100763

Merged
merged 3 commits into from
Jan 6, 2023

Conversation

gvanrossum
Copy link
Member

@gvanrossum gvanrossum commented Jan 5, 2023

  • This doesn't cover everything (far from it) but it's a start.
  • This uses pytest, which isn't ideal, but was quickest to get started.

import generate_cases


def run_test(input: str, expected: str):
Copy link
Member

Choose a reason for hiding this comment

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

Maybe run_cases_test, because we will also have a run_metadata test?

Tools/cases_generator/test_generator.py Show resolved Hide resolved
gvanrossum and others added 3 commits January 5, 2023 14:09
- This doesn't cover everything (far from it) but it's a start.
- This uses pytest, which isn't ideal, but was quickest to get started.
In anticipation of run_opcode_test().
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
@gvanrossum
Copy link
Member Author

Ready for review again.

@gvanrossum gvanrossum merged commit 9ffbc58 into python:main Jan 6, 2023
@gvanrossum gvanrossum deleted the cases-test branch January 6, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants