Skip to content

Commit d6b1bc1

Browse files
committed
Format code
1 parent a82efbe commit d6b1bc1

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

packages/bigframes/tests/unit/display/test_anywidget.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,12 @@ def test_page_size_change_resets_sort(mock_df):
179179

180180
def 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)

packages/bigframes/tests/unit/session/test_read_gbq_colab.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)