def test_corr_matrix_save_image1(): da = DataAnalyst(data) da.corr_matrix(features=["a", "b"], display=False)
def test_corr_matrix_incorrect_path(): da = DataAnalyst(data) with pytest.raises(NameError): da.corr_matrix(features=["a", "b"], save_image=True, path="/incorrect")
def test_corr_matrix_feature_error_only(): da = DataAnalyst(data) with pytest.raises(NameError): da.corr_matrix(features=["c"])
def test_corr_matrix_feature_error_None(): da = DataAnalyst(data) da.corr_matrix()
def test_corr_matrix_feature_error_type(): da = DataAnalyst(data) with pytest.raises(TypeError): da.corr_matrix(features=np.array(["a", "b"]))