-
Notifications
You must be signed in to change notification settings - Fork 322
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
Set credentials key as variables #1682
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1682 +/- ##
=======================================
Coverage 97.11% 97.11%
=======================================
Files 47 47
Lines 4395 4402 +7
=======================================
+ Hits 4268 4275 +7
Misses 127 127 ☔ View full report in Codecov by Sentry. |
sdv/datasets/demo.py
Outdated
response = urllib.request.urlopen(dataset_url) | ||
except urllib.error.HTTPError: | ||
file_content = _get_data_from_bucket(object_key) | ||
except Exception: |
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.
is there a more specific exception type we could use here?
tests/unit/datasets/test_demo.py
Outdated
@patch.dict(os.environ, { | ||
'AWS_ACCESS_KEY_ID': 'access_key', | ||
'AWS_SECRET_ACCESS_KEY': 'secret_access_key', | ||
'AWS_DEFAULT_REGION': 'region_name', | ||
}) |
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.
do we need to patch these?
50b16e0
to
53a441e
Compare
86ayqtfhr
Resolve #1680