def test_experiments_widget_sorting(standalone_parameters_dataset, sort_by): dss = [standalone_parameters_dataset] widget = interactive_widget.experiments_widget(data_sets=dss, sort_by=sort_by) assert len(widget.children) == 3 grid = widget.children[2] assert isinstance(grid, GridspecLayout) assert grid.n_rows == 1 + 1
def test_experiments_widget(standalone_parameters_dataset): dss = [standalone_parameters_dataset] widget = interactive_widget.experiments_widget(data_sets=dss) assert len(widget.children) == 3 html, tab, grid = widget.children assert isinstance(html, HTML) assert isinstance(tab, Tab) assert isinstance(grid, GridspecLayout) assert grid.n_rows == 1 + 1
def test_full_widget_on_one_dataset(): interactive_widget.experiments_widget()
def test_full_widget_on_empty_experiment(): interactive_widget.experiments_widget()