Skip to content

Commit

Permalink
Exclude .tools.iea.eei from coverage, cf. #164
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Apr 8, 2024
1 parent 0e1192b commit e3a58b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion message_ix_models/tests/tools/iea/test_eei.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class TestIEA_EEI:
("R12", True, 5),
),
)
def test_prepare_computer(
def test_prepare_computer( # pragma: no cover cf. iiasa/message-ix-models#164
self, test_context, source_kw, dimensionality, regions, aggregate, N_n
):
test_context.model.regions = regions
Expand Down
2 changes: 2 additions & 0 deletions message_ix_models/tools/iea/eei.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Retrieve data from the IEA Energy Efficiency Indicators source."""
# FIXME This file is currently excluded from coverage measurement. See
# iiasa/message-ix-models#164

import logging
import re
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ exclude_also = [
omit = [
# The single existing test is far from enough
"message_ix_models/report/legacy/*",
# See https://github.com/iiasa/message-ix-models/issues/164
"message_ix_models/tools/iea/eei.py",
]

[tool.mypy]
Expand Down

0 comments on commit e3a58b7

Please sign in to comment.