Skip to content

Commit 02dd9c7

Browse files
committed
fix unit test
1 parent dd55da7 commit 02dd9c7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/maxplotlib/tests/test_canvas.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,10 @@ def fake_show(self, *args, **kwargs):
369369
script_path = Path(__file__).resolve().parents[3] / "show_canvas.py"
370370
runpy.run_path(str(script_path), run_name="__main__")
371371

372-
assert calls == [((), {"verbose": True})]
372+
assert len(calls) == 1
373+
args, kwargs = calls[0]
374+
assert args == ()
375+
assert kwargs["verbose"] is True
373376

374377

375378
def test_canvas_plot_uses_screen_dpi_when_not_saving():

0 commit comments

Comments
 (0)