Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Dec 4, 2024
1 parent 39a11d0 commit ddb44a3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 0 additions & 2 deletions google/cloud/spanner_v1/testing/mock_database_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@

from google.longrunning import operations_pb2 as operations_pb2
from google.protobuf import empty_pb2

import google.cloud.spanner_v1.testing.spanner_database_admin_pb2_grpc as database_admin_grpc


# An in-memory mock DatabaseAdmin server that can be used for testing.
class DatabaseAdminServicer(database_admin_grpc.DatabaseAdminServicer):
def __init__(self):
Expand Down
4 changes: 1 addition & 3 deletions google/cloud/spanner_v1/testing/mock_spanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import base64
import grpc
from concurrent import futures

from google.protobuf import empty_pb2
import grpc

from google.cloud.spanner_v1.testing.mock_database_admin import DatabaseAdminServicer
import google.cloud.spanner_v1.testing.spanner_database_admin_pb2_grpc as database_admin_grpc
import google.cloud.spanner_v1.testing.spanner_pb2_grpc as spanner_grpc
Expand All @@ -25,7 +24,6 @@
import google.cloud.spanner_v1.types.spanner as spanner
import google.cloud.spanner_v1.types.transaction as transaction


class MockSpanner:
def __init__(self):
self.results = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
# ./google/spanner/admin/database/v1/*.proto

"""Client and server classes corresponding to protobuf-defined services."""

import grpc
from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2
from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2
from google.longrunning import (
operations_pb2 as google_dot_longrunning_dot_operations__pb2,
)
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
import grpc

from google.cloud.spanner_admin_database_v1.types import (
backup as google_dot_spanner_dot_admin_dot_database_dot_v1_dot_backup__pb2,
)
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/spanner_v1/testing/spanner_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# ./google/spanner/v1/*.proto

"""Client and server classes corresponding to protobuf-defined services."""
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
import grpc

import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from google.cloud.spanner_v1.types import (
commit_response as google_dot_spanner_dot_v1_dot_commit__response__pb2,
)
Expand Down

0 comments on commit ddb44a3

Please sign in to comment.