Skip to content

Commit

Permalink
ingore warnings on tests, close #1065 #1066
Browse files Browse the repository at this point in the history
  • Loading branch information
avaldebe committed Mar 20, 2024
1 parent f78622d commit d16ce2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ exclude = [
minversion = "7.4"
log_cli = false
log_cli_level = "WARNING"
addopts = ["--failed-first", "--import-mode=importlib"]
addopts = [
"--failed-first",
"--import-mode=importlib",
"--pythonwarnings=ignore", # comment to raise errors from warnings, see filterwarnings
]
xfail_strict = true
testpaths = ["tests"]
filterwarnings = [
Expand Down
3 changes: 1 addition & 2 deletions tests/io/mscw_ctm/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,8 @@ def test_ReadMscwCtm__repr__():


def test_ReadEMEP__init__():
with pytest.raises(DeprecationWarning) as e:
with pytest.warns(DeprecationWarning) as e:
assert isinstance(ReadEMEP(), ReadMscwCtm)
assert "please use ReadMscwCtm instead" in str(e.value)


def emep_data_path(tmp_path: Path, freq: str | list[str], vars_and_units: dict[str, str]) -> Path:
Expand Down

0 comments on commit d16ce2f

Please sign in to comment.