Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiMacielPereira committed Nov 2, 2023
1 parent 56cd64d commit 4ce48d5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions tests/cut_plot_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def test_increment_all_fonts(self):
self.cut_plot.all_fonts_size = fonts_config

self.cut_plot.increase_all_fonts()
self.assertEqual(self.cut_plot.title_size, 15.5)
self.assertEqual(self.cut_plot.x_range_font_size, 14.5)
self.assertEqual(self.cut_plot.y_range_font_size, 13.5)
self.assertEqual(self.cut_plot.x_label_size, 12.5)
self.assertEqual(self.cut_plot.y_label_size, 11.5)
self.assertEqual(self.cut_plot.title_size, 16)
self.assertEqual(self.cut_plot.x_range_font_size, 15)
self.assertEqual(self.cut_plot.y_range_font_size, 14)
self.assertEqual(self.cut_plot.x_label_size, 13)
self.assertEqual(self.cut_plot.y_label_size, 12)
14 changes: 7 additions & 7 deletions tests/slice_plot_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ def test_increase_all_fonts(self):

self.slice_plot.increase_all_fonts()

self.assertEqual(self.slice_plot.title_size, 15.5)
self.assertEqual(self.slice_plot.x_range_font_size, 14.5)
self.assertEqual(self.slice_plot.y_range_font_size, 13.5)
self.assertEqual(self.slice_plot.x_label_size, 12.5)
self.assertEqual(self.slice_plot.y_label_size, 11.5)
mock_colorbar_label_size.assert_called_with(9.5)
mock_colorbar_range_font_size.assert_called_with(10.5)
self.assertEqual(self.slice_plot.title_size, 16)
self.assertEqual(self.slice_plot.x_range_font_size, 15)
self.assertEqual(self.slice_plot.y_range_font_size, 14)
self.assertEqual(self.slice_plot.x_label_size, 13)
self.assertEqual(self.slice_plot.y_label_size, 12)
mock_colorbar_label_size.assert_called_with(10)
mock_colorbar_range_font_size.assert_called_with(11)


if __name__ == '__main__':
Expand Down

0 comments on commit 4ce48d5

Please sign in to comment.