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

Include headers in initial client load #38

Merged
merged 6 commits into from
Apr 15, 2021
Merged

Include headers in initial client load #38

merged 6 commits into from
Apr 15, 2021

Conversation

gadomski
Copy link
Member

@gadomski gadomski commented Apr 15, 2021

Related Issue(s): None

Description:
Monkeypatch solution.

This commit also adds:

  • Return codes for the cli
  • A simple cli test
  • An extra dev dependency (pytest-console-scripts) to test to cli

PR Checklist:

  • Code is formatted
  • Tests pass
  • Changes are added to the CHANGELOG

To do this, we had to copy over the `STACObject.from_file` method from
pystac, becuase that method did some URL absolutization before
using STAC_IO.read_text_method, which breaks our custom
urllib.request.Request handling. It's not a perfect solution -- it might
be better to make the pystac method smarter -- but it's a quick fix.

This commit also adds:
- Return codes for the cli
- A simple cli test
- An extra dev dependency (pytest-console-scripts) to test to cli
@codecov-io
Copy link

codecov-io commented Apr 15, 2021

Codecov Report

❗ No coverage uploaded for pull request base (mah/fix_headers@5b3ec7c). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                Coverage Diff                 @@
##             mah/fix_headers      #38   +/-   ##
==================================================
  Coverage                   ?   85.32%           
==================================================
  Files                      ?       13           
  Lines                      ?      620           
  Branches                   ?        0           
==================================================
  Hits                       ?      529           
  Misses                     ?       91           
  Partials                   ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b3ec7c...f976030. Read the comment docs.

@matthewhanson matthewhanson merged commit f034bad into stac-utils:mah/fix_headers Apr 15, 2021
@gadomski gadomski deleted the mah/fix_headers branch April 16, 2021 12:57
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.

None yet

3 participants