-
Notifications
You must be signed in to change notification settings - Fork 111
Updated some unittests to use subtests #965
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: main
Are you sure you want to change the base?
Conversation
|
Can AI check variable initialization and add all doc strings that are missing in Aviary? |
I'm not sure what you mean by variable initialization in this case. AI could definitely write docstrings, but I don't trust it to correctly explain function arguments, so it would need to be heavily reviewed |
How about potential divide-by-zero errors and verbosity level? |
|
|
||
|
|
||
| def flops_validation_test( | ||
| test: unittest.TestCase, |
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.
case_name should probably be removed from here too, since it is not longer used due to the change in arguments in do_validation_test.
Summary
A subset of unittests were updated to use unittest's subTest feature, which allows for multiple failures to occur within a test, which prevents a developer from needing to update a test one assert at a time while debugging.
This work was done with AI (Claude 4.5 opus), and was a test of automating simple but tedious updates across multiple files. Only some files were updated due to limits/cost on repeatedly running an expensive LLM model and limitations on how many files in a row an agentic query could get through before stalling.
Updates to the FLOPS validation test helper functions was done manually.
Related Issues
Backwards incompatibilities
None
New Dependencies
None