Skip to content

Commit 8211207

Browse files
committed
style: format test_magics.py with black
1 parent ba7532f commit 8211207

1 file changed

Lines changed: 27 additions & 9 deletions

File tree

packages/google-cloud-bigquery/tests/unit/test_magics.py

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,9 @@ def test_bigquery_magic_with_legacy_sql(monkeypatch, use_local_magics_context):
555555

556556
@pytest.mark.usefixtures("ipython_interactive")
557557
@pytest.mark.skipif(pandas is None, reason="Requires `pandas`")
558-
def test_bigquery_magic_with_result_saved_to_variable(ipython_ns_cleanup, monkeypatch, use_local_magics_context):
558+
def test_bigquery_magic_with_result_saved_to_variable(
559+
ipython_ns_cleanup, monkeypatch, use_local_magics_context
560+
):
559561
ip = IPython.get_ipython()
560562
monkeypatch.setattr(bigquery, "bigquery_magics", None)
561563
bigquery.load_ipython_extension(ip)
@@ -589,7 +591,9 @@ def test_bigquery_magic_with_result_saved_to_variable(ipython_ns_cleanup, monkey
589591

590592

591593
@pytest.mark.usefixtures("ipython_interactive")
592-
def test_bigquery_magic_does_not_clear_display_in_verbose_mode(monkeypatch, use_local_magics_context):
594+
def test_bigquery_magic_does_not_clear_display_in_verbose_mode(
595+
monkeypatch, use_local_magics_context
596+
):
593597
ip = IPython.get_ipython()
594598
monkeypatch.setattr(bigquery, "bigquery_magics", None)
595599
bigquery.load_ipython_extension(ip)
@@ -611,7 +615,9 @@ def test_bigquery_magic_does_not_clear_display_in_verbose_mode(monkeypatch, use_
611615

612616

613617
@pytest.mark.usefixtures("ipython_interactive")
614-
def test_bigquery_magic_clears_display_in_non_verbose_mode(monkeypatch, use_local_magics_context):
618+
def test_bigquery_magic_clears_display_in_non_verbose_mode(
619+
monkeypatch, use_local_magics_context
620+
):
615621
ip = IPython.get_ipython()
616622
monkeypatch.setattr(bigquery, "bigquery_magics", None)
617623
bigquery.load_ipython_extension(ip)
@@ -636,7 +642,9 @@ def test_bigquery_magic_clears_display_in_non_verbose_mode(monkeypatch, use_loca
636642
@pytest.mark.skipif(
637643
bigquery_storage is None, reason="Requires `google-cloud-bigquery-storage`"
638644
)
639-
def test_bigquery_magic_with_bqstorage_from_argument(monkeypatch, use_local_magics_context):
645+
def test_bigquery_magic_with_bqstorage_from_argument(
646+
monkeypatch, use_local_magics_context
647+
):
640648
ip = IPython.get_ipython()
641649
monkeypatch.setattr(bigquery, "bigquery_magics", None)
642650
bigquery.load_ipython_extension(ip)
@@ -703,7 +711,9 @@ def warning_match(warning):
703711
@pytest.mark.skipif(
704712
bigquery_storage is None, reason="Requires `google-cloud-bigquery-storage`"
705713
)
706-
def test_bigquery_magic_with_rest_client_requested(monkeypatch, use_local_magics_context):
714+
def test_bigquery_magic_with_rest_client_requested(
715+
monkeypatch, use_local_magics_context
716+
):
707717
pandas = pytest.importorskip("pandas")
708718

709719
ip = IPython.get_ipython()
@@ -1449,7 +1459,9 @@ def test_bigquery_magic_with_project(monkeypatch):
14491459

14501460

14511461
@pytest.mark.usefixtures("ipython_interactive")
1452-
def test_bigquery_magic_with_bigquery_api_endpoint(ipython_ns_cleanup, monkeypatch, use_local_magics_context):
1462+
def test_bigquery_magic_with_bigquery_api_endpoint(
1463+
ipython_ns_cleanup, monkeypatch, use_local_magics_context
1464+
):
14531465
ip = IPython.get_ipython()
14541466
monkeypatch.setattr(bigquery, "bigquery_magics", None)
14551467
bigquery.load_ipython_extension(ip)
@@ -1472,7 +1484,9 @@ def test_bigquery_magic_with_bigquery_api_endpoint(ipython_ns_cleanup, monkeypat
14721484

14731485

14741486
@pytest.mark.usefixtures("ipython_interactive")
1475-
def test_bigquery_magic_with_bigquery_api_endpoint_context_dict(monkeypatch, use_local_magics_context):
1487+
def test_bigquery_magic_with_bigquery_api_endpoint_context_dict(
1488+
monkeypatch, use_local_magics_context
1489+
):
14761490
ip = IPython.get_ipython()
14771491
monkeypatch.setattr(bigquery, "bigquery_magics", None)
14781492
bigquery.load_ipython_extension(ip)
@@ -1496,7 +1510,9 @@ def test_bigquery_magic_with_bigquery_api_endpoint_context_dict(monkeypatch, use
14961510

14971511

14981512
@pytest.mark.usefixtures("ipython_interactive")
1499-
def test_bigquery_magic_with_bqstorage_api_endpoint(ipython_ns_cleanup, monkeypatch, use_local_magics_context):
1513+
def test_bigquery_magic_with_bqstorage_api_endpoint(
1514+
ipython_ns_cleanup, monkeypatch, use_local_magics_context
1515+
):
15001516
ip = IPython.get_ipython()
15011517
monkeypatch.setattr(bigquery, "bigquery_magics", None)
15021518
bigquery.load_ipython_extension(ip)
@@ -1519,7 +1535,9 @@ def test_bigquery_magic_with_bqstorage_api_endpoint(ipython_ns_cleanup, monkeypa
15191535

15201536

15211537
@pytest.mark.usefixtures("ipython_interactive")
1522-
def test_bigquery_magic_with_bqstorage_api_endpoint_context_dict(monkeypatch, use_local_magics_context):
1538+
def test_bigquery_magic_with_bqstorage_api_endpoint_context_dict(
1539+
monkeypatch, use_local_magics_context
1540+
):
15231541
ip = IPython.get_ipython()
15241542
monkeypatch.setattr(bigquery, "bigquery_magics", None)
15251543
bigquery.load_ipython_extension(ip)

0 commit comments

Comments
 (0)