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