Explorar el Código

update test to cover rendering the bar chart

Daniel Sheffield hace 1 año
padre
commit
2255616b2e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      test/test_widgets.py

+ 2 - 1
test/test_widgets.py

@@ -65,12 +65,13 @@ def bargraph():
     None,
 ])
 def test_flow_bar_graph_with_vscale(bargraph: FlowBarGraphWithVScale, vscale: Tuple[float]):
-    bargraph.set_data([1,2,3], 3, vscale=vscale)
+    bargraph.set_data([[1],[2],[3]], 3, vscale=vscale)
     bargraph.set_caption('my data')
     assert bargraph.total_width == 50
     assert bargraph.canvas_width == 50 - bargraph._vscale_width
     assert bargraph.height == 14
     bargraph.set_bar_width(2)
+    bargraph.render((100,))
 
 @fixture
 def notabcheckbox():