Skip to content

initial refactor for unit tests #132

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
merged 4 commits into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[flake8]
select = B,B9,C,D,DAR,E,F,N,RST,S,W
select = B,B9,C,DAR,E,F,N,RST,S,W
# remove after D202 eventually
ignore = E203,E501,RST201,RST203,RST301,W503,D202,B950,D100,D103,C901
ignore = E203,E501,RST201,RST203,RST301,W503,D202,B950,C901
max-line-length = 80
max-complexity = 10
docstring-convention = google
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,18 @@ jobs:
pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry
nox --version

# - name: Download coverage data
# uses: actions/download-artifact@v3
# with:
# name: coverage-data
#
# - name: Combine coverage data and display human readable report
# run: |
# nox --session=coverage
#
# - name: Create coverage report
# run: |
# nox --session=coverage -- xml
#
# - name: Upload coverage report
# uses: codecov/[email protected]
- name: Download coverage data
uses: actions/download-artifact@v3
with:
name: coverage-data

- name: Combine coverage data and display human readable report
run: |
nox --session=coverage

- name: Create coverage report
run: |
nox --session=coverage -- xml

- name: Upload coverage report
uses: codecov/[email protected]
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased] - TBD

### Added

- Added unit tests

### Changed

- Significant refactoring to support unit testing

## [0.2.0] - 2022-10-16

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ The link relations define how to navigate a STAC catalog through parent-child li

The parameters that filter results apply to the Items resource and Item Search endpoints.

The current validity status of several popular STAC API implementations can be found [here](../stac-api-validator/COMPLIANCE_REPORT.md).
The current validity status of several popular STAC API implementations can be found [here](COMPLIANCE_REPORT.md).

## Command-line Reference

Expand Down
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ coverage:
status:
project:
default:
target: "100"
target: "10"
patch:
default:
target: "100"
target: "10"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ source = ["stac_api_validator", "tests"]

[tool.coverage.report]
show_missing = true
fail_under = 100
fail_under = 10 # todo: get back to 85

[tool.isort]
profile = "black"
Expand Down
Loading