Skip to content

Commit e17895e

Browse files
committed
Use pio defaults to check test defaults
1 parent c589d1c commit e17895e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_optional/test_kaleido/test_kaleido.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,9 @@ def test_width_height_priority():
366366
fig = create_figure()
367367
svg_bytes = pio.to_image(fig, format="svg")
368368
width, height = parse_svg_dimensions(svg_bytes)
369-
assert width is not None and height is not None, (
370-
"Default dimensions should be used when no layout or arguments"
369+
assert width == pio.defaults.default_width, (
370+
"Default width should be used when no layout or argument"
371+
)
372+
assert height == pio.defaults.default_height, (
373+
"Default height should be used when no layout or argument"
371374
)

0 commit comments

Comments
 (0)