Skip to content

Commit

Permalink
Test warnings from DeprecatedPathFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Nov 16, 2023
1 parent e6740b7 commit 5f9b1a9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ixmp/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
from ixmp.testing import make_dantzig, populate_test_platform


class TestDeprecatedPathFinder:
def test_import(self):
with pytest.warns(
DeprecationWarning,
match="Importing from 'ixmp.reporting.computations' is deprecated and will "
"fail in a future version. Use 'ixmp.report.operator'.",
):
import ixmp.reporting.computations # type: ignore # noqa: F401


def test_check_year():
# If y is a string value, raise a Value Error.

Expand Down

0 comments on commit 5f9b1a9

Please sign in to comment.