Skip to content

Commit

Permalink
add test case for gif name setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ShisatoYano committed Dec 3, 2024
1 parent 4c0f6d6 commit 09d956b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test_global_xy_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 09d956b

Please sign in to comment.