diff --git a/owlbot.py b/owlbot.py index b412127e..99d99b19 100644 --- a/owlbot.py +++ b/owlbot.py @@ -125,4 +125,4 @@ # run format session for all directories which have a noxfile for noxfile in Path(".").glob("**/noxfile.py"): - s.shell.run(["nox", "-s", "blacken"], cwd=noxfile.parent, hide_output=False) \ No newline at end of file + s.shell.run(["nox", "-s", "format"], cwd=noxfile.parent, hide_output=False) diff --git a/samples/snippets/append_rows_pending_test.py b/samples/snippets/append_rows_pending_test.py index 9af69570..e6b1173e 100644 --- a/samples/snippets/append_rows_pending_test.py +++ b/samples/snippets/append_rows_pending_test.py @@ -19,8 +19,6 @@ from google.cloud import bigquery -from . import append_rows_pending - DIR = pathlib.Path(__file__).parent diff --git a/samples/snippets/append_rows_proto2_test.py b/samples/snippets/append_rows_proto2_test.py index 904f17dd..fd45ab2f 100644 --- a/samples/snippets/append_rows_proto2_test.py +++ b/samples/snippets/append_rows_proto2_test.py @@ -21,8 +21,6 @@ from google.cloud import bigquery -from . import append_rows_proto2 - DIR = pathlib.Path(__file__).parent diff --git a/samples/snippets/conftest.py b/samples/snippets/conftest.py index a186291e..d60749a1 100644 --- a/samples/snippets/conftest.py +++ b/samples/snippets/conftest.py @@ -15,8 +15,6 @@ import pytest import test_utils.prefixer -from google.cloud import bigquery - prefixer = test_utils.prefixer.Prefixer("python-bigquery-storage", "samples/snippets") diff --git a/tests/unit/test_writer_v1.py b/tests/unit/test_writer_v1.py index 7ff4e3c3..cb112342 100644 --- a/tests/unit/test_writer_v1.py +++ b/tests/unit/test_writer_v1.py @@ -15,14 +15,13 @@ import time from unittest import mock -import pytest - from google.api_core import exceptions -from google.cloud.bigquery_storage_v1.services import big_query_write -from google.cloud.bigquery_storage_v1 import types as gapic_types -from google.cloud.bigquery_storage_v1 import exceptions as bqstorage_exceptions from google.protobuf import descriptor_pb2 +import pytest +from google.cloud.bigquery_storage_v1 import exceptions as bqstorage_exceptions +from google.cloud.bigquery_storage_v1 import types as gapic_types +from google.cloud.bigquery_storage_v1.services import big_query_write REQUEST_TEMPLATE = gapic_types.AppendRowsRequest()