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

tests: Make tests runnable from anywhere #496

Merged

Conversation

l0b0
Copy link
Contributor

@l0b0 l0b0 commented Jun 29, 2021

By using the current file rather than the root of the project as the
reference, the tests are now runnable for example in an IDE which uses
the "tests" directory as the root.

Related Issue(s): #331

Description:

PR Checklist:

  • Code is formatted (run pre-commit run --all-files)
  • Tests pass (run scripts/test)
  • Documentation has been updated to reflect changes, if applicable
  • This PR maintains or improves overall codebase code coverage.
  • Changes are added to the CHANGELOG. See the docs for information about adding to the changelog.

By using the current file rather than the root of the project as the
reference, the tests are now runnable for example in an IDE which uses
the "tests" directory as the root.
@codecov-commenter
Copy link

Codecov Report

Merging #496 (a7c0e43) into main (f9573f8) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #496      +/-   ##
==========================================
- Coverage   91.66%   91.64%   -0.02%     
==========================================
  Files          40       40              
  Lines        5245     5245              
==========================================
- Hits         4808     4807       -1     
- Misses        437      438       +1     
Impacted Files Coverage Δ
pystac/stac_object.py 94.17% <0.00%> (-0.53%) ⬇️

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 f9573f8...a7c0e43. Read the comment docs.

@duckontheweb duckontheweb merged commit 802e931 into stac-utils:main Jun 29, 2021
@l0b0 l0b0 deleted the make-tests-runnable-from-anywhere branch June 29, 2021 23:35
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