fix: typos in test methods names (#7)

This commit is contained in:
PBM 2021-07-15 02:16:11 +02:00 committed by GitHub
parent c9ad486335
commit aa5a4f29bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ class LinePlotTestCase(unittest.TestCase):
expected = "Page Views" expected = "Page Views"
self.assertEqual(actual, expected, "Expected line plot ylabel to be 'Page Views'") self.assertEqual(actual, expected, "Expected line plot ylabel to be 'Page Views'")
def test_line_plot_data_quatity(self): def test_line_plot_data_quantity(self):
actual = len(self.ax.lines[0].get_ydata()) actual = len(self.ax.lines[0].get_ydata())
expected = 1238 expected = 1238
self.assertEqual(actual, expected, "Expected number of data points in line plot to be 1238.") self.assertEqual(actual, expected, "Expected number of data points in line plot to be 1238.")
@ -111,7 +111,7 @@ class BoxPlotTestCase(unittest.TestCase):
expected = "Month-wise Box Plot (Seasonality)" expected = "Month-wise Box Plot (Seasonality)"
self.assertEqual(actual, expected, "Expected box plot 1 title to be 'Month-wise Box Plot (Seasonality)'") self.assertEqual(actual, expected, "Expected box plot 1 title to be 'Month-wise Box Plot (Seasonality)'")
def test_box_plot_number_of_boxs(self): def test_box_plot_number_of_boxes(self):
actual = len(self.ax1.lines) / 6 # Every box has 6 lines actual = len(self.ax1.lines) / 6 # Every box has 6 lines
expected = 4 expected = 4
self.assertEqual(actual, expected, "Expected four boxes in box plot 1") self.assertEqual(actual, expected, "Expected four boxes in box plot 1")