Procházet zdrojové kódy

update test to cover rendering the bar chart

Daniel Sheffield před 1 rokem
rodič
revize
2255616b2e
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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():