Skip to content

Commit

Permalink
blacken + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shubha-rajan committed Sep 4, 2019
1 parent 6dcac88 commit 6761217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bigquery/google/cloud/bigquery/magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def default_query_job_config(self, value):

context = Context()


def _print_error(error, destination_var=None):
if destination_var:
print(
Expand All @@ -274,6 +275,7 @@ def _print_error(error, destination_var=None):
)
print("\nERROR:\n", error, file=sys.stderr)


def _run_query(client, query, job_config=None, max_results=None):
"""Runs a query while printing status updates
Expand Down
1 change: 1 addition & 0 deletions bigquery/tests/unit/test_magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ def test_bigquery_magic_w_max_results_valid_calls_queryjob_result():

query_job_mock.result.assert_called_once_with(timeout=0.5, max_results=5)


def test_bigquery_magic_w_table_id_invalid():
ip = IPython.get_ipython()
ip.extension_manager.load_extension("google.cloud.bigquery")
Expand Down

0 comments on commit 6761217

Please sign in to comment.