MCPcopy Create free account
hub / github.com/spotify/chartify / test_multi_numeric_line

Method test_multi_numeric_line

tests/test_plots.py:78–85  ·  view source on GitHub ↗

Single line test

(self)

Source from the content-addressed store, hash-verified

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"""

Callers

nothing calls this directly

Calls 2

chart_dataFunction · 0.85
lineMethod · 0.45

Tested by

no test coverage detected