-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Add tests for CDP code generation script #16200
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
base: trunk
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
This won't work without some bazel changes because the |
User description
🔗 Related Issues
Related to #16161
💥 What does this PR do?
This PR pulls in the tests from the upstream
HyperionGray/python-chrome-devtools-protocol
repo that we get our CDP generation code from (py/generate.py
). It adds it to our Python unit test suite.This PR also adds some type annotations to
py/generate.py
that exist in the upstream version.The tests currently all pass against our modified version of
py/generate.py
.This will be helpful if we need to modify the generation code.
PR Type
Tests
Description
Add comprehensive test suite for CDP code generation script
Import tests from upstream HyperionGray repository
Add type annotations to generation functions
Ensure test coverage for all CDP generation components
Diagram Walkthrough
File Walkthrough
generate.py
Add type annotations to CDP generator
py/generate.py
to_json()
andfrom_json()
methodscdp_generate_tests.py
Add comprehensive CDP generation test suite
py/test/unit/cdp_generate_tests.py
class)