Update plotter unit tests for _best_gridshape changes
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/58d6cdf1 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/58d6cdf1 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/58d6cdf1 Branch: refs/heads/master Commit: 58d6cdf16e52da9c326381718a80ecc33e880eb4 Parents: fb02c74 Author: Alex <ago...@users.noreply.github.com> Authored: Thu Sep 28 23:33:13 2017 -0700 Committer: Alex <ago...@users.noreply.github.com> Committed: Thu Sep 28 23:33:13 2017 -0700 ---------------------------------------------------------------------- ocw/tests/test_plotter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/58d6cdf1/ocw/tests/test_plotter.py ---------------------------------------------------------------------- diff --git a/ocw/tests/test_plotter.py b/ocw/tests/test_plotter.py index 19ba66a..894e0c4 100644 --- a/ocw/tests/test_plotter.py +++ b/ocw/tests/test_plotter.py @@ -51,14 +51,14 @@ class TestBestGridShapeFunction(unittest.TestCase): def test_returned_shape_small(self): nplots = 2 oldshape = (2, 2) - expected_shape = (1, 2) + expected_shape = (2, 1) new_shape = plotter._best_grid_shape(nplots, oldshape) self.assertEqual(new_shape, expected_shape) def test_returned_shape_large(self): nplots = 57 - oldshape = (220, 12) - expected_shape = (5, 12) + oldshape = (12, 220) + expected_shape = (12, 5) new_shape = plotter._best_grid_shape(nplots, oldshape) self.assertEqual(new_shape, expected_shape)