Module imodels.tests.notebooks_test
Expand source code
import pytest
from unittest.mock import patch
import matplotlib.pyplot
@patch('matplotlib.pyplot')
@patch('sklearn.tree.plot_tree')
@patch('pandas.DataFrame.style')
@pytest.mark.filterwarnings("ignore::UserWarning")
def test_imodels_demo(mock_pd_style, mock_plot_tree, mock_pyplot):
from .notebooks import imodels_demo
Functions
def test_imodels_demo(mock_pd_style, mock_plot_tree, mock_pyplot)
-
Expand source code
@patch('matplotlib.pyplot') @patch('sklearn.tree.plot_tree') @patch('pandas.DataFrame.style') @pytest.mark.filterwarnings("ignore::UserWarning") def test_imodels_demo(mock_pd_style, mock_plot_tree, mock_pyplot): from .notebooks import imodels_demo