ILinePlot: learn to pass tests
Let view() parse the test parameter so that we can test ILinePlot from
the testsuite. It's not a complete solution, but it's good enough to
get us started.
Change-Id: Ie0ce7a541b8714b579118143208b818277a585a6
diff --git a/tests/test_plotter.py b/tests/test_plotter.py
index 4276834..f009a50 100644
--- a/tests/test_plotter.py
+++ b/tests/test_plotter.py
@@ -247,6 +247,13 @@
self.assertEquals(procs, expected_procs)
self.assertEquals(window, [1, 5])
+class TestILinePlotter(unittest.TestCase):
+ def test_simple_dfr(self):
+ dfr1 = pd.DataFrame([1, 2, 3, 4], columns=["a"])
+ dfr2 = pd.DataFrame([2, 3, 4, 5], columns=["a"])
+
+ trappy.ILinePlot([dfr1, dfr2], column=["a", "a"]).view(test=True)
+
class TestBarPlot(unittest.TestCase):
def setUp(self):
self.dfr = pd.DataFrame({"foo": [1, 2, 3],