We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d74392 commit 9862782Copy full SHA for 9862782
tests/unit/test_magics.py
@@ -1094,9 +1094,14 @@ def test_bigquery_magic_saves_query_job_to_variable_on_error(
1094
ip = IPython.get_ipython()
1095
monkeypatch.setattr(bigquery, "bigquery_magics", None)
1096
bigquery.load_ipython_extension(ip)
1097
- magics.context.credentials = mock.create_autospec(
1098
- google.auth.credentials.Credentials, instance=True
+ monkeypatch.setattr(
+ magics.context,
1099
+ "credentials",
1100
+ mock.create_autospec(google.auth.credentials.Credentials, instance=True),
1101
)
1102
+ # magics.context.credentials = mock.create_autospec(
1103
+ # google.auth.credentials.Credentials, instance=True
1104
+ # )
1105
1106
ipython_ns_cleanup.append((ip, "result"))
1107
0 commit comments