-
Notifications
You must be signed in to change notification settings - Fork 47
MPRester
lazily get endpoint
and api_key
#936
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
Merged
tschaume
merged 25 commits into
materialsproject:main
from
DanielYang59:lazy-get-api-key
Oct 3, 2024
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
b076a8e
get env var lazily
DanielYang59 dee31a0
remove seemingly unused deprecation warn
DanielYang59 48fbc54
remove unused ignore tag
DanielYang59 b7b3d19
fix URL case
DanielYang59 1214f2e
access self.endpoint for updated entry
DanielYang59 c1fa506
only patch api key env var in CI env
DanielYang59 b11178c
add unit test for lazy mp api key
DanielYang59 d0afe41
remove skip decorator
DanielYang59 5540253
also check endpoint
DanielYang59 479a9ba
add more tests for endpoint
DanielYang59 c31ef7d
don't patch api_key and recover skip mark
DanielYang59 b3ff75a
avoid duplicate endpoint
DanielYang59 f740843
also test default and invalid api key
DanielYang59 2232e5a
os.environ.get -> os.getenv
DanielYang59 5648026
BaseRester also get lazily
DanielYang59 1b7510d
make sure self.endpoint is set
tschaume 7edcc7f
remove duplicated pytest skip mark
DanielYang59 e77077b
turn off fail-fast
DanielYang59 38b149e
NEED CONFIRM: filter get_data_by_id deprecation warning
DanielYang59 0f55062
cleanup
tschaume b466c31
linting
tschaume 284b18d
try upper casing secrets name
tschaume 66f2355
use tr for uppercase
tschaume 6435643
test api key in header
tschaume 63dd563
Revert "test api key in header"
tschaume File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.