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

Method test_single_numeric_line

tests/test_plots.py:70–76  ·  view source on GitHub ↗

Single line test

(self)

Source from the content-addressed store, hash-verified

68 )
69
70 def test_single_numeric_line(self):
71 """Single line test"""
72 single_line = self.data[self.data["category1"] == "a"]
73 ch = chartify.Chart()
74 ch.plot.line(single_line, x_column="number1", y_column="number2")
75 assert np.array_equal(chart_data(ch, "")["number1"], [1.0, 2.0, 3.0])
76 assert np.array_equal(chart_data(ch, "")["number2"], [5, 10, 0])
77
78 def test_multi_numeric_line(self):
79 """Single line test"""

Callers

nothing calls this directly

Calls 2

chart_dataFunction · 0.85
lineMethod · 0.45

Tested by

no test coverage detected