Single line test
(self)
| 76 | assert np.array_equal(chart_data(ch, "")["number2"], [5, 10, 0]) |
| 77 | |
| 78 | def test_multi_numeric_line(self): |
| 79 | """Single line test""" |
| 80 | ch = chartify.Chart() |
| 81 | ch.plot.line(self.data, x_column="number1", y_column="number2", color_column="category1") |
| 82 | assert np.array_equal(chart_data(ch, "a")["number1"], [1.0, 2.0, 3.0]) |
| 83 | assert np.array_equal(chart_data(ch, "a")["number2"], [5, 10, 0]) |
| 84 | assert np.array_equal(chart_data(ch, "b")["number1"], [1.0, 2.0, 3.0]) |
| 85 | assert np.array_equal(chart_data(ch, "b")["number2"], [4, -3, -10]) |
| 86 | |
| 87 | def test_single_datetime_line(self): |
| 88 | """Single line test""" |
nothing calls this directly
no test coverage detected