Skip to content

Commit 4f53216

Browse files
authored
Merge pull request #1333 from hyanwong/fix-svg-y-param
Actually test the SVG parameter combinations
2 parents a09fefd + 0ef5ad0 commit 4f53216

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

python/tests/test_drawing.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,10 +1533,22 @@ def test_draw_svg_y_axis_parameter_combos(
15331533
self, y_axis, y_label, tree_height_scale, y_ticks, y_gridlines
15341534
):
15351535
t = self.get_binary_tree()
1536-
svg = t.draw_svg()
1536+
svg = t.draw_svg(
1537+
y_axis=y_axis,
1538+
y_label=y_label,
1539+
y_ticks=y_ticks,
1540+
y_gridlines=y_gridlines,
1541+
tree_height_scale=tree_height_scale,
1542+
)
15371543
self.verify_basic_svg(svg)
15381544
ts = self.get_simple_ts()
1539-
svg = ts.draw_svg()
1545+
svg = ts.draw_svg(
1546+
y_axis=y_axis,
1547+
y_label=y_label,
1548+
y_ticks=y_ticks,
1549+
y_gridlines=y_gridlines,
1550+
tree_height_scale=tree_height_scale,
1551+
)
15401552
self.verify_basic_svg(svg, width=200 * ts.num_trees)
15411553

15421554
def test_draw_multiroot(self):

0 commit comments

Comments
 (0)