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

Method test_single_numeric_text

tests/test_plots.py:154–161  ·  view source on GitHub ↗

Single line test

(self)

Source from the content-addressed store, hash-verified

152 )
153
154 def test_single_numeric_text(self):
155 """Single line test"""
156 single_text = self.data[self.data["text"] == "a"]
157 ch = chartify.Chart()
158 ch.plot.text(single_text, x_column="number1", y_column="number2", text_column="text")
159 assert np.array_equal(chart_data(ch, "")["number1"], [1.0, 2.0, 3.0])
160 assert np.array_equal(chart_data(ch, "")["number2"], [5, 10, 0])
161 assert np.array_equal(chart_data(ch, "")["text"], ["a", "a", "a"])
162
163 def test_multi_numeric_text(self):
164 """Single line test"""

Callers

nothing calls this directly

Calls 2

chart_dataFunction · 0.85
textMethod · 0.45

Tested by

no test coverage detected