def test_distribution_targets_save_image1(): da = DataAnalyst(data) da.distribution_targets(target=["c"], display=False)
def test_distribution_targets_incorrect_path(): da = DataAnalyst(data) with pytest.raises(NameError): da.distribution_targets(target=["c"], save_image=True, path="/incorrect")
def test_distribution_targets_target_error_only(): da = DataAnalyst(data) with pytest.raises(NameError): da.distribution_targets(target=["a", "b"])
def test_distribution_targets_target_error_None(): da = DataAnalyst(data) with pytest.raises(NameError): da.distribution_targets()
def test_distribution_targets_target_error_type(): da = DataAnalyst(data) with pytest.raises(TypeError): da.distribution_targets(target=np.array(col))