Exemplo 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)
Exemplo n.º 2
0
def test_sns_jointplot_test1():
    da = DataAnalyst(data)
    da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"])
Exemplo 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)
Exemplo 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")
Exemplo 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"])
Exemplo 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"]))
Exemplo 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)
Exemplo 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")
Exemplo 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")