From 024d2880a4501d371fbb358db4b468a26350a098 Mon Sep 17 00:00:00 2001 From: lenatr99 Date: Fri, 31 May 2024 11:24:20 +0200 Subject: [PATCH] Fix Marker Genes unit tests --- .../bioinformatics/tests/widgets/test_OWMarkerGenes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/orangecontrib/bioinformatics/tests/widgets/test_OWMarkerGenes.py b/orangecontrib/bioinformatics/tests/widgets/test_OWMarkerGenes.py index 734e0486..0ba2c1b8 100644 --- a/orangecontrib/bioinformatics/tests/widgets/test_OWMarkerGenes.py +++ b/orangecontrib/bioinformatics/tests/widgets/test_OWMarkerGenes.py @@ -306,7 +306,7 @@ def test_available_sources(self): When more available unittest will be changed. """ self.assertListEqual( - ["CellMarker", "Panglao"], list(self.widget.available_sources.keys()) + ["CellMarker", "DictyBase", "Panglao"], list(self.widget.available_sources.keys()) ) def test_source_changed(self): @@ -319,7 +319,7 @@ def test_source_changed(self): self.assertEqual(len(self.panglao), len(self.widget.data)) # Panglao data - simulate.combobox_activate_index(self.widget.controls.source_index, 1) + simulate.combobox_activate_index(self.widget.controls.source_index, 2) self.assertEqual("CellMarker", self.widget.db_source_cb.currentText()) self.assertTrue(isinstance(self.widget.data, Table)) self.assertEqual(len(self.cell_markers), len(self.widget.data)) @@ -363,7 +363,7 @@ def test_organism_changed(self): len(np.unique(cell_types[~human_rows])), len(model.rootItem.childItems) ) - simulate.combobox_activate_index(self.widget.controls.source_index, 1) + simulate.combobox_activate_index(self.widget.controls.source_index, 2) simulate.combobox_activate_index(self.widget.controls.organism_index, 0) self.assertEqual("CellMarker", self.widget.db_source_cb.currentText()) self.assertEqual("Human", self.widget.group_cb.currentText()) @@ -379,7 +379,7 @@ def test_organism_changed(self): len(np.unique(cell_types[human_rows])), len(model.rootItem.childItems) ) - simulate.combobox_activate_index(self.widget.controls.source_index, 1) + simulate.combobox_activate_index(self.widget.controls.source_index, 2) simulate.combobox_activate_index(self.widget.controls.organism_index, 1) self.assertEqual("CellMarker", self.widget.db_source_cb.currentText()) self.assertEqual("Mouse", self.widget.group_cb.currentText())