From 09d956b7bb62bf3916acbd38dd222d33d157d7fa Mon Sep 17 00:00:00 2001 From: ShisatoYano Date: Tue, 3 Dec 2024 15:07:03 +0000 Subject: [PATCH] add test case for gif name setting --- test/test_global_xy_visualizer.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_global_xy_visualizer.py b/test/test_global_xy_visualizer.py index 5a4291e..cbc5b27 100644 --- a/test/test_global_xy_visualizer.py +++ b/test/test_global_xy_visualizer.py @@ -67,9 +67,19 @@ def test_initialize(): assert vis.x_lim != None assert vis.y_lim != None assert vis.time_params != None + assert vis.gif_name == None assert vis.show_plot == True +def test_gif_name(): + test_gif_name = "test.gif" + + x_lim, y_lim = MockMinMax(), MockMinMax() + vis = GlobalXYVisualizer(x_lim, y_lim, MockTimeParameters(), gif_name=test_gif_name) + + assert vis.gif_name == test_gif_name + + def test_draw(): mock = MockObject()