File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/python/plotly/plotly/tests/test_optional/test_px Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ def add_interchange_module_for_old_pandas():
14
14
if not hasattr (pd .api , "interchange" ):
15
15
pd .api .interchange = mock .MagicMock ()
16
16
# to make the following import work: `import pandas.api.interchange`
17
- with mock .patch .dict ("sys.modules" , {"pandas.api.interchange" : pd .api .interchange }):
17
+ with mock .patch .dict (
18
+ "sys.modules" , {"pandas.api.interchange" : pd .api .interchange }
19
+ ):
18
20
yield
19
21
else :
20
22
yield
@@ -246,7 +248,9 @@ def test_build_df_with_index():
246
248
assert_frame_equal (tips .reset_index ()[out ["data_frame" ].columns ], out ["data_frame" ])
247
249
248
250
249
- def test_build_df_using_interchange_protocol_mock (add_interchange_module_for_old_pandas ):
251
+ def test_build_df_using_interchange_protocol_mock (
252
+ add_interchange_module_for_old_pandas ,
253
+ ):
250
254
class CustomDataFrame :
251
255
def __dataframe__ (self ):
252
256
pass
You can’t perform that action at this time.
0 commit comments