def test_methods(self): def callback(): self.widget.send_report() self.assertIsNotNone(self.get_output(self.widget.Outputs.inliers)) self.assertIsNotNone(self.get_output(self.widget.Outputs.outliers)) self.assertIsNotNone(self.get_output(self.widget.Outputs.data)) self.send_signal(self.widget.Inputs.data, self.iris) simulate.combobox_run_through_all(self.widget.method_combo, callback=callback)
def test_datasets(self): controls = self.widget.controls for ds in datasets.datasets(): self.send_signal(self.widget.Inputs.data, ds) simulate.combobox_run_through_all(controls.selected_var) simulate.combobox_run_through_all(controls.group_var) simulate.combobox_run_through_all(controls.annot_var) simulate.combobox_run_through_all(controls.color_var)
def test_retain_selection_on_param_change(self): self.send_signal(self.widget.Inputs.data, self.data) indices = self._select_data() self.assertSelectedIndices(indices) controls = self.widget.controls simulate.combobox_run_through_all(controls.selected_var) simulate.combobox_run_through_all(controls.group_var) simulate.combobox_run_through_all(controls.annot_var) simulate.combobox_run_through_all(controls.color_var) self.assertSelectedIndices(indices)