Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 4975589

Browse files
committed
testing run_query_patch
1 parent 0599746 commit 4975589

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/unit/test_magics.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,11 @@ def test_bigquery_magic_query_variable_not_identifier(monkeypatch):
19721972

19731973
cell_body = "$123foo" # 123foo is not valid Python identifier
19741974

1975-
with io.capture_output() as captured_io:
1975+
run_query_patch = mock.patch(
1976+
"google.cloud.bigquery.magics.magics._run_query", autospec=True
1977+
)
1978+
1979+
with run_query_patch, io.capture_output() as captured_io:
19761980
ip.run_cell_magic("bigquery", "", cell_body)
19771981

19781982
# If "$" prefixes a string that is not a Python identifier, we do not treat such

0 commit comments

Comments
 (0)