-
-
Notifications
You must be signed in to change notification settings - Fork 46.2k
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
Pytest locally fails due to API_KEY env variable #8738
Conversation
@cclauss Could you review please? The issue number is also in the description, as well as the pr message |
I do not understand why these changes are required.
|
@cclauss No I did not, but why should someone have to make an account from some website, get an api key and export this api key just to run local tests? It doesn't make any sense that one algorithm causes such a hassle In this discussion #8791 people are confused why running the tests locally fails due to one algorithm. This change does not break the algorithm, just moves getting the API_KEY into the |
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.
Now I understand. CI
is not defined on localhost thus...
Thanks for the explanation.
* fix: Pytest locally fails due to API_KEY env variable (TheAlgorithms#8737) * chore: Fix ruff errors
Describe your change:
Fixes #8737
Checklist:
Fixes: #{$ISSUE_NO}
.