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

Make api keys optional when running tests. #171

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

matthusby
Copy link
Contributor

When running the test without having all the API keys set this would blow up even if you are not testing that api. This will just try to load them and continue.

@brainlid
Copy link
Owner

brainlid commented Sep 6, 2024

Hi @matthusby! I see where you're coming from with this. At the same time, having it error loudly has helped me when I moved development to another machine and the ENV wasn't all the way setup yet.

I'll think a bit more about this.

@matthusby
Copy link
Contributor Author

Yeah I can see that being useful. I was coming at this from the default should just work, but if you are testing those api's then this does in fact break the just work part.

How do you feel about logging a notice if the key could not be found?

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.

2 participants