Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 16, 2024
1 parent 0f68486 commit d7d861e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions compliance_checker/tests/test_cf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1300,9 +1300,7 @@ def test_check_time_coordinate(self):
# NB: >= 60 seconds is nonstandard, but isn't actually a CF requirement
# until CF 1.9 onwards
dataset.variables["time"].units = "months since 0-1-1 23:00:60"
dataset.variables[
"time"
].climatology = (
dataset.variables["time"].climatology = (
"nonexistent_variable_reference_only_used_to_test_year_zero_failure"
)
results = self.cf.check_time_coordinate(dataset)
Expand Down Expand Up @@ -2953,9 +2951,9 @@ def test_bad_lsid(self):
messages = results[0].msgs
assert results[0].value[0] < results[0].value[1]
assert len(messages) == 1
taxon_lsid[
0
] = "http://www.lsid.info/urn:lsid:marinespecies.org:taxname:99999999999"
taxon_lsid[0] = (
"http://www.lsid.info/urn:lsid:marinespecies.org:taxname:99999999999"
)
results = self.cf.check_taxa(dataset)
assert messages[0].startswith(
"Taxon id must match one of the following forms:",
Expand Down

0 comments on commit d7d861e

Please sign in to comment.