Skip to content

Commit

Permalink
utils
Browse files Browse the repository at this point in the history
  • Loading branch information
fkiraly committed Jul 25, 2024
1 parent 32d9133 commit ee89b3d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions skpro/utils/tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

import pytest

from skpro.tests.test_switch import run_test_module_changed
from skpro.utils.validation._dependencies import _check_soft_dependencies


@pytest.mark.skipif(
not _check_soft_dependencies("matplotlib", severity="none"),
not run_test_module_changed("skpro.utils")
or not _check_soft_dependencies("matplotlib", severity="none"),
reason="skip test if required soft dependency for matplotlib not available",
)
def test_plot_crossplot_interval():
Expand Down Expand Up @@ -37,7 +39,8 @@ def test_plot_crossplot_interval():


@pytest.mark.skipif(
not _check_soft_dependencies("matplotlib", severity="none"),
not run_test_module_changed("skpro.utils")
or not _check_soft_dependencies("matplotlib", severity="none"),
reason="skip test if required soft dependency for matplotlib not available",
)
def test_plot_crossplot_std():
Expand Down Expand Up @@ -66,7 +69,8 @@ def test_plot_crossplot_std():


@pytest.mark.skipif(
not _check_soft_dependencies("matplotlib", severity="none"),
not run_test_module_changed("skpro.utils")
or not _check_soft_dependencies("matplotlib", severity="none"),
reason="skip test if required soft dependency for matplotlib not available",
)
def test_plot_crossplot_loss():
Expand Down

0 comments on commit ee89b3d

Please sign in to comment.