Skip to content

Commit cda78b1

Browse files
committed
remove dead code
1 parent 0529b18 commit cda78b1

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

packages/django-google-spanner/django_spanner/introspection.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
from django.db.models import Index
1313
from google.cloud.spanner_v1 import TypeCode
1414

15-
from django_spanner import USE_EMULATOR
16-
1715

1816
class DatabaseIntrospection(BaseDatabaseIntrospection):
1917
"""A Spanner-specific version of Django introspection utilities."""

packages/django-google-spanner/tests/mockserver_tests/mock_server_test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import google.cloud.spanner_v1.types.result_set as result_set
1919
import google.cloud.spanner_v1.types.type as spanner_type
2020
import grpc
21-
from django.db import connection, connections
21+
from django.db import connections
2222
from google.api_core.client_options import ClientOptions
2323
from google.auth.credentials import AnonymousCredentials
2424
from google.cloud.spanner_dbapi.parsed_statement import AutocommitDmlMode

packages/django-google-spanner/tests/unit/django_spanner/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __getattr__(self, name):
4646
return mock.MagicMock()
4747

4848
with mock.patch("django_spanner.base.spanner"):
49-
self.db_wrapper.connection = mock_connection = DummyConnection()
49+
self.db_wrapper.connection = DummyConnection()
5050
self.db_wrapper.init_connection_state()
5151

5252
def test_create_cursor(self):

packages/django-google-spanner/tests/unit/django_spanner/test_introspection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from google.cloud.spanner_dbapi.cursor import ColumnDetails
1212
from google.cloud.spanner_v1 import TypeCode
1313

14-
from django_spanner import USING_DJANGO_3
1514
from django_spanner.introspection import DatabaseIntrospection
1615
from tests.unit.django_spanner.simple_test import SpannerSimpleTestClass
1716

0 commit comments

Comments
 (0)