Skip to content

Commit 59c6622

Browse files
committed
added test
1 parent b652039 commit 59c6622

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/python/plotly/plotly/tests/test_core/test_px/test_imshow.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,13 @@ def test_animation_frame_grayscale(animation_frame, binary_string):
362362
def test_animation_frame_rgb(animation_frame, binary_string):
363363
img = np.random.randint(255, size=(10, 9, 8, 3)).astype(np.uint8)
364364
fig = px.imshow(img, animation_frame=animation_frame, binary_string=binary_string,)
365-
print(binary_string)
366365
nslices = img.shape[animation_frame]
367366
assert len(fig.frames) == nslices
367+
368+
369+
def test_animation_and_facet():
370+
img = np.random.randint(255, size=(10, 9, 8, 7)).astype(np.uint8)
371+
fig = px.imshow(img, animation_frame=0, facet_col=1, binary_string=True)
372+
nslices = img.shape[0]
373+
assert len(fig.frames) == nslices
374+
assert len(fig.data) == img.shape[1]

0 commit comments

Comments
 (0)