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

create directory for writing item json #152

Merged
merged 1 commit into from
Apr 23, 2024
Merged

create directory for writing item json #152

merged 1 commit into from
Apr 23, 2024

Conversation

philvarner
Copy link

Related issues and pull requests

  • n/a

Description

While testing stac-task, I observed that the test that requested a non-existent asset name to be downloaded (or, I believe, and case where no assets are downloaded) resulted in an error writing the item.json if the working directory didn't already exist. This PR makes sure that directory does exist before writing the json.

Checklist

  • Add tests
  • Add docs
  • Update CHANGELOG

@philvarner philvarner requested a review from gadomski as a code owner April 23, 2024 21:35
@codecov-commenter
Copy link

codecov-commenter commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.81%. Comparing base (338e42e) to head (43d7b9f).

❗ Current head 43d7b9f differs from pull request most recent head 0dacfd0. Consider uploading reports for the commit 0dacfd0 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #152      +/-   ##
==========================================
+ Coverage   79.79%   79.81%   +0.02%     
==========================================
  Files          16       16              
  Lines         985      986       +1     
==========================================
+ Hits          786      787       +1     
  Misses        199      199              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gadomski gadomski enabled auto-merge (rebase) April 23, 2024 23:03
@gadomski gadomski merged commit e2a47ad into main Apr 23, 2024
10 checks passed
@gadomski gadomski deleted the pv/create-dir branch April 23, 2024 23:05
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.

3 participants