-
Notifications
You must be signed in to change notification settings - Fork 17
Added missing test_oracle_solubility_eval
#13
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
Conversation
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.
Pull Request Overview
This PR adds a missing unit test for the oracle_solubility_eval function, ensuring its behavior is validated across multiple scenarios.
- Imported the new
oracle_solubility_evalfunction into the test suite - Added a parameterized
test_oracle_solubility_evalcovering diverse solubility cases
Comments suppressed due to low confidence (1)
tests/test_rewards.py:361
- It may be valuable to add an assertion on
metadataafter callingoracle_solubility_evalto ensure expected metadata entries are populated.
metadata: dict[str, JsonValue] = {}
| ), f"Reason for failure: {metadata}" | ||
|
|
||
|
|
||
| @pytest.mark.parametrize( |
Copilot
AI
Jun 16, 2025
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.
[nitpick] This long list of parameter cases could be refactored into a helper or fixture to reduce duplication and make individual cases easier to manage.
| ), | ||
| pytest.param( | ||
| "CCCCCC=CCCCN(C)CCC", | ||
| '("groups", ["cis double bond", "hetero N basic H"], -4.693881511688232, "decrease")', # noqa: E501 |
Copilot
AI
Jun 16, 2025
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.
[nitpick] There are two spaces before the numeric literal; consider normalizing whitespace to a single space for consistency.
| '("groups", ["cis double bond", "hetero N basic H"], -4.693881511688232, "decrease")', # noqa: E501 | |
| '("groups", ["cis double bond", "hetero N basic H"], -4.693881511688232, "decrease")', # noqa: E501 |
|
Nevermind, I realized I put this test in |
Realized I didn't open source a unit test that I could have