示例#1
0
文件: test_vis.py 项目: oddyolau/lux
def test_vis_list_set_intent(global_var):
    from lux.vis.VisList import VisList

    df = pytest.car_df
    vislist = VisList(["Horsepower", "?"], df)
    vislist._ipython_display_()
    for vis in vislist:
        assert vis.get_attr_by_attr_name("Horsepower") != []
    vislist.intent = ["Weight", "?"]
    vislist._ipython_display_()
    for vis in vislist:
        assert vis.get_attr_by_attr_name("Weight") != []
示例#2
0
def test_display_VisList(global_var):
    df = pytest.car_df
    vislist = VisList(["?", "Acceleration"], df)
    vislist._ipython_display_()