File tree Expand file tree Collapse file tree
packages/bigframes/tests/unit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -179,8 +179,12 @@ def test_page_size_change_resets_sort(mock_df):
179179
180180def test_cell_execution_count_propagation (mock_df ):
181181 """Test that the captured cell_execution_count is propagated to to_pandas_batches."""
182- with mock .patch ("IPython.core.interactiveshell.InteractiveShell.initialized" , return_value = True ):
183- with mock .patch ("IPython.core.interactiveshell.InteractiveShell.instance" ) as mock_instance :
182+ with mock .patch (
183+ "IPython.core.interactiveshell.InteractiveShell.initialized" , return_value = True
184+ ):
185+ with mock .patch (
186+ "IPython.core.interactiveshell.InteractiveShell.instance"
187+ ) as mock_instance :
184188 mock_instance .return_value .execution_count = 42
185189 with bigframes .option_context ("display.render_mode" , "anywidget" ):
186190 widget = TableWidget (mock_df )
Original file line number Diff line number Diff line change @@ -207,8 +207,12 @@ def test_execution_history_filters_by_notebook_cell_when_all_cells_is_false():
207207 )
208208 session ._metrics .jobs .extend ([job1 , job2 ])
209209
210- with mock .patch ("IPython.core.interactiveshell.InteractiveShell.initialized" , return_value = True ):
211- with mock .patch ("IPython.core.interactiveshell.InteractiveShell.instance" ) as mock_instance :
210+ with mock .patch (
211+ "IPython.core.interactiveshell.InteractiveShell.initialized" , return_value = True
212+ ):
213+ with mock .patch (
214+ "IPython.core.interactiveshell.InteractiveShell.instance"
215+ ) as mock_instance :
212216 mock_instance .return_value .execution_count = 20
213217 history = session .execution_history (all_cells = False ).to_dataframe ()
214218
You can’t perform that action at this time.
0 commit comments