Skip to content

Commit

Permalink
Fix Marker Genes unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lenatr99 committed May 31, 2024
1 parent 41cfdf0 commit 024d288
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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))
Expand Down Expand Up @@ -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())
Expand All @@ -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())
Expand Down

0 comments on commit 024d288

Please sign in to comment.