Skip to content

Commit

Permalink
Merge pull request #82 from xpublish-community/pre-commit-ci-update-c…
Browse files Browse the repository at this point in the history
…onfig

[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
abkfenris authored Jan 22, 2025
2 parents 5b0ba50 + 3329e1c commit 8cd45d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.6"
rev: "v0.9.2"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
24 changes: 12 additions & 12 deletions tests/test_opendap_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ def test_das_response(dap_client):
assert 'String standard_name "latitude"' in content
assert 'String standard_name "time"' in content
assert 'String standard_name "longitude"' in content
assert (
'String long_name "4xDaily Air temperature at sigma level 995"' in content
), "long_name attribute missing from air DataArray"
assert (
'String title "4x daily NMC reanalysis (1948)"' in content
), "Global attributes are returned"
assert 'String long_name "4xDaily Air temperature at sigma level 995"' in content, (
"long_name attribute missing from air DataArray"
)
assert 'String title "4x daily NMC reanalysis (1948)"' in content, (
"Global attributes are returned"
)


def test_dods_response(dap_client):
Expand Down Expand Up @@ -112,12 +112,12 @@ def test_single_das_response(dap_single_client):
assert 'String standard_name "latitude"' in content
assert 'String standard_name "time"' in content
assert 'String standard_name "longitude"' in content
assert (
'String long_name "4xDaily Air temperature at sigma level 995"' in content
), "long_name attribute missing from air DataArray"
assert (
'String title "4x daily NMC reanalysis (1948)"' in content
), "Global attributes are returned"
assert 'String long_name "4xDaily Air temperature at sigma level 995"' in content, (
"long_name attribute missing from air DataArray"
)
assert 'String title "4x daily NMC reanalysis (1948)"' in content, (
"Global attributes are returned"
)


def test_single_dods_response(dap_single_client):
Expand Down

0 comments on commit 8cd45d1

Please sign in to comment.