Esempio n. 1
0
def test_sns_jointplot_display():
    da = DataAnalyst(data)
    da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"], categoria2=["NOK"], display=True)
Esempio n. 2
0
def test_sns_jointplot_test1():
    da = DataAnalyst(data)
    da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"])
Esempio n. 3
0
def test_sns_jointplot_categoria2_noerror_None():
    da = DataAnalyst(data)
    da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"], categoria2=None)
Esempio n. 4
0
def test_sns_jointplot_incorrect_path():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"], categoria2=["NOK"], save_image=True, path="/invalid")
Esempio n. 5
0
def test_sns_jointplot_categoria2_error_not_included():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"], categoria2=["OKNOK"])
Esempio n. 6
0
def test_sns_jointplot_categoria2_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"], categoria2=np.array(["OK"]))
Esempio n. 7
0
def test_sns_jointplot_categoria1_error_None():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=None)
Esempio n. 8
0
def test_sns_jointplot_target_error_none():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.sns_jointplot(feature1=["a"], feature2=["b"], categoria1="OK")
Esempio n. 9
0
def test_sns_jointplot_feature2_error_object():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.sns_jointplot(feature1=["a"], feature2=["c"], target=["c"], categoria1="OK")