Skip to content

Commit

Permalink
tests/owheatmap: Add test for migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Jan 7, 2020
1 parent 64d4486 commit 457b2b8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Orange/widgets/visualize/tests/test_owheatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,17 @@ def test_center_palette(self):
colors = image_row_colors(image)
np.testing.assert_almost_equal(colors, desired)

def test_migrate_settings_v3(self):
w = self.create_widget(
OWHeatMap, stored_settings={
"row_clustering": False,
"col_clustering": True,
}
)
self.assertEqual(w.row_clustering, Clustering.None_)
self.assertEqual(w.col_clustering, Clustering.OrderedClustering)



if __name__ == "__main__":
unittest.main()

0 comments on commit 457b2b8

Please sign in to comment.