@@ -21,16 +21,15 @@ def test_wide_mode_external():
21
21
assert fig .layout .xaxis .title .text == "index"
22
22
assert fig .layout .yaxis .title .text == "_value_"
23
23
assert fig .layout .legend .title .text == "_column_"
24
- if px_fn in [px .area , px .bar ]:
25
- fig = px_fn (df , orientation = "h" )
26
- assert len (fig .data ) == 3
27
- assert list (fig .data [0 ].y ) == [11 , 12 , 13 ]
28
- assert list (fig .data [0 ].x ) == [1 , 2 , 3 ]
29
- assert list (fig .data [1 ].y ) == [11 , 12 , 13 ]
30
- assert list (fig .data [1 ].x ) == [4 , 5 , 6 ]
31
- assert fig .layout .yaxis .title .text == "index"
32
- assert fig .layout .xaxis .title .text == "_value_"
33
- assert fig .layout .legend .title .text == "_column_"
24
+ fig = px_fn (df , orientation = "h" )
25
+ assert len (fig .data ) == 3
26
+ assert list (fig .data [0 ].y ) == [11 , 12 , 13 ]
27
+ assert list (fig .data [0 ].x ) == [1 , 2 , 3 ]
28
+ assert list (fig .data [1 ].y ) == [11 , 12 , 13 ]
29
+ assert list (fig .data [1 ].x ) == [4 , 5 , 6 ]
30
+ assert fig .layout .yaxis .title .text == "index"
31
+ assert fig .layout .xaxis .title .text == "_value_"
32
+ assert fig .layout .legend .title .text == "_column_"
34
33
for px_fn in [px .violin , px .box , px .strip ]:
35
34
fig = px_fn (df )
36
35
assert len (fig .data ) == 1
0 commit comments