Skip to content

Conversation

@chalmerlowe
Copy link
Collaborator

This PR introduces comprehensive unit tests for the list_code_objects() function in
scripts/microgenerator/generate.py.

The new test suite, located in tests/unit/test_generate_lister.py, covers the various functionalities
of list_code_objects(), including:

  • Listing class names only.
  • Showing methods, attributes, and method arguments based on boolean flags.
  • Handling both single file and directory inputs.
  • Testing with empty files and files containing no classes.

Mocks are used to isolate the function's logic from the file system and AST parsing

@chalmerlowe chalmerlowe requested review from a team as code owners October 13, 2025 16:25
@chalmerlowe chalmerlowe requested review from suzmue and removed request for a team October 13, 2025 16:25
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Oct 13, 2025
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Oct 13, 2025
@chalmerlowe chalmerlowe merged commit aa4ace8 into autogen Oct 15, 2025
21 checks passed
@chalmerlowe chalmerlowe deleted the test/test_code_object_lister branch October 15, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants