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

test: Fix test_config.py fails when variables are set externally in the environment #3621

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

shubhamofbce
Copy link
Contributor

@shubhamofbce shubhamofbce commented Aug 27, 2024

Short description of the problem this fixes or functionality that this introduces. This may be used for the CHANGELOG
Fixes: #3572
Mocked env variables to fix the failing tests.


Give a summary of what the PR does, explaining any non-trivial design decisions
We were expecting the value of LLM_MODEL to be None, so I just deleted that env if it is set externally using monkey patch. This will fix the issue of this variable getting set externally and failing the tests.


Link of any specific issues this addresses
#3572

@shubhamofbce
Copy link
Contributor Author

@neubig Can you please review this and merge?

Copy link
Collaborator

@tofarr tofarr left a comment

Choose a reason for hiding this comment

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

LGTM!

@shubhamofbce
Copy link
Contributor Author

@neubig Can we merge this ??

@tobitege tobitege enabled auto-merge (squash) August 29, 2024 15:01
@tobitege tobitege merged commit 296fa81 into All-Hands-AI:main Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: test_config.py fails when LLM_MODEL is set externally in the environment
3 participants