sqlalchemy-spanner 1.18.0__tar.gz → 1.19.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/PKG-INFO +3 -3
  2. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/google/cloud/sqlalchemy_spanner/__init__.py +0 -2
  3. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/google/cloud/sqlalchemy_spanner/_opentelemetry_tracing.py +0 -1
  4. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py +20 -36
  5. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/google/cloud/sqlalchemy_spanner/version.py +1 -1
  6. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/setup.py +1 -2
  7. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/sqlalchemy_spanner.egg-info/PKG-INFO +3 -3
  8. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/tests/test_suite_13.py +110 -67
  9. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/tests/test_suite_14.py +142 -79
  10. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/tests/test_suite_20.py +155 -90
  11. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/LICENSE +0 -0
  12. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/README.rst +0 -0
  13. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/google/cloud/sqlalchemy_spanner/dml.py +0 -0
  14. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/google/cloud/sqlalchemy_spanner/provision.py +0 -0
  15. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/google/cloud/sqlalchemy_spanner/requirements.py +1 -1
  16. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/setup.cfg +0 -0
  17. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/sqlalchemy_spanner.egg-info/SOURCES.txt +0 -0
  18. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/sqlalchemy_spanner.egg-info/dependency_links.txt +0 -0
  19. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/sqlalchemy_spanner.egg-info/entry_points.txt +0 -0
  20. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/sqlalchemy_spanner.egg-info/not-zip-safe +0 -0
  21. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/sqlalchemy_spanner.egg-info/requires.txt +0 -0
  22. {sqlalchemy_spanner-1.18.0 → sqlalchemy_spanner-1.19.0}/sqlalchemy_spanner.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlalchemy-spanner
3
- Version: 1.18.0
3
+ Version: 1.19.0
4
4
  Summary: SQLAlchemy dialect integrated into Cloud Spanner database
5
5
  Home-page: https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy
6
6
  Author: Google LLC
@@ -8,13 +8,12 @@ Author-email: googleapis-packages@google.com
8
8
  License: Apache 2.0
9
9
  Classifier: Intended Audience :: Developers
10
10
  Classifier: License :: OSI Approved :: Apache Software License
11
- Classifier: Programming Language :: Python :: 3.8
12
- Classifier: Programming Language :: Python :: 3.9
13
11
  Classifier: Programming Language :: Python :: 3.10
14
12
  Classifier: Programming Language :: Python :: 3.11
15
13
  Classifier: Programming Language :: Python :: 3.12
16
14
  Classifier: Programming Language :: Python :: 3.13
17
15
  Classifier: Programming Language :: Python :: 3.14
16
+ Requires-Python: >=3.10
18
17
  License-File: LICENSE
19
18
  Requires-Dist: sqlalchemy>=1.1.13
20
19
  Requires-Dist: google-cloud-spanner>=3.55.0
@@ -32,6 +31,7 @@ Dynamic: license
32
31
  Dynamic: license-file
33
32
  Dynamic: provides-extra
34
33
  Dynamic: requires-dist
34
+ Dynamic: requires-python
35
35
  Dynamic: summary
36
36
 
37
37
  Spanner dialect for SQLAlchemy
@@ -13,8 +13,6 @@
13
13
  # limitations under the License.
14
14
 
15
15
  from .sqlalchemy_spanner import SpannerDialect
16
-
17
16
  from .version import __version__
18
17
 
19
-
20
18
  __all__ = (SpannerDialect, __version__)
@@ -16,7 +16,6 @@
16
16
 
17
17
  import collections
18
18
  import os
19
-
20
19
  from contextlib import contextmanager
21
20
 
22
21
  from google.api_core.exceptions import GoogleAPICallError
@@ -12,9 +12,9 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
  import base64
15
-
16
15
  import re
17
16
 
17
+ import sqlalchemy
18
18
  from alembic.ddl.base import (
19
19
  ColumnNullable,
20
20
  ColumnType,
@@ -26,32 +26,30 @@ from alembic.ddl.base import (
26
26
  from google.api_core.client_options import ClientOptions
27
27
  from google.auth.credentials import AnonymousCredentials
28
28
  from google.cloud.spanner_v1 import Client, TransactionOptions
29
- from sqlalchemy.exc import NoSuchTableError
30
- from sqlalchemy.sql import elements
31
- from sqlalchemy import ForeignKeyConstraint, types, TypeDecorator, PickleType
29
+ from google.cloud.spanner_v1.data_types import JsonObject
30
+ from sqlalchemy import ForeignKeyConstraint, PickleType, TypeDecorator, types
32
31
  from sqlalchemy.engine.base import Engine
33
32
  from sqlalchemy.engine.default import DefaultDialect, DefaultExecutionContext
34
33
  from sqlalchemy.event import listens_for
34
+ from sqlalchemy.exc import NoSuchTableError
35
35
  from sqlalchemy.ext.compiler import compiles
36
36
  from sqlalchemy.pool import Pool
37
+ from sqlalchemy.sql import elements, expression
37
38
  from sqlalchemy.sql.compiler import (
38
- selectable,
39
+ OPERATORS,
40
+ RESERVED_WORDS,
39
41
  DDLCompiler,
40
42
  GenericTypeCompiler,
41
43
  IdentifierPreparer,
42
44
  SQLCompiler,
43
- OPERATORS,
44
- RESERVED_WORDS,
45
+ selectable,
45
46
  )
46
47
  from sqlalchemy.sql.default_comparator import operator_lookup
47
48
  from sqlalchemy.sql.operators import json_getitem_op
48
- from sqlalchemy.sql import expression
49
49
 
50
- from google.cloud.spanner_v1.data_types import JsonObject
51
50
  from google.cloud import spanner_dbapi
52
- from google.cloud.sqlalchemy_spanner._opentelemetry_tracing import trace_call
53
51
  from google.cloud.sqlalchemy_spanner import version as sqlalchemy_spanner_version
54
- import sqlalchemy
52
+ from google.cloud.sqlalchemy_spanner._opentelemetry_tracing import trace_call
55
53
 
56
54
  USING_SQLACLCHEMY_20 = False
57
55
  if sqlalchemy.__version__.split(".")[0] == "2":
@@ -223,9 +221,9 @@ class SpannerExecutionContext(DefaultExecutionContext):
223
221
  if ignore_transaction_warnings is not None:
224
222
  conn = self._dbapi_connection.connection
225
223
  if conn is not None and hasattr(conn, "_connection_variables"):
226
- conn._connection_variables[
227
- "ignore_transaction_warnings"
228
- ] = ignore_transaction_warnings
224
+ conn._connection_variables["ignore_transaction_warnings"] = (
225
+ ignore_transaction_warnings
226
+ )
229
227
 
230
228
  def fire_sequence(self, seq, type_):
231
229
  """Builds a statement for fetching next value of the sequence."""
@@ -416,7 +414,7 @@ class SpannerSQLCompiler(SQLCompiler):
416
414
  text += "\n LIMIT " + self.process(select._limit_clause, **kw)
417
415
  if select._offset_clause is not None:
418
416
  if select._limit_clause is None:
419
- text += f"\n LIMIT {9223372036854775807-select._offset}"
417
+ text += f"\n LIMIT {9223372036854775807 - select._offset}"
420
418
  text += " OFFSET " + self.process(select._offset_clause, **kw)
421
419
  return text
422
420
 
@@ -1025,9 +1023,7 @@ class SpannerDialect(DefaultDialect):
1025
1023
  SELECT table_name
1026
1024
  FROM information_schema.views
1027
1025
  WHERE TABLE_SCHEMA='{}'
1028
- """.format(
1029
- schema or ""
1030
- )
1026
+ """.format(schema or "")
1031
1027
 
1032
1028
  all_views = []
1033
1029
  with connection.connection.database.snapshot() as snap:
@@ -1056,9 +1052,7 @@ class SpannerDialect(DefaultDialect):
1056
1052
  SELECT name
1057
1053
  FROM information_schema.sequences
1058
1054
  WHERE SCHEMA='{}'
1059
- """.format(
1060
- schema or ""
1061
- )
1055
+ """.format(schema or "")
1062
1056
  all_sequences = []
1063
1057
  with connection.connection.database.snapshot() as snap:
1064
1058
  rows = list(snap.execute_sql(sql))
@@ -1087,9 +1081,7 @@ class SpannerDialect(DefaultDialect):
1087
1081
  SELECT view_definition
1088
1082
  FROM information_schema.views
1089
1083
  WHERE TABLE_SCHEMA='{schema_name}' AND TABLE_NAME='{view_name}'
1090
- """.format(
1091
- schema_name=schema or "", view_name=view_name
1092
- )
1084
+ """.format(schema_name=schema or "", view_name=view_name)
1093
1085
 
1094
1086
  with connection.connection.database.snapshot() as snap:
1095
1087
  rows = list(snap.execute_sql(sql))
@@ -1623,9 +1615,7 @@ class SpannerDialect(DefaultDialect):
1623
1615
  SELECT table_name
1624
1616
  FROM information_schema.tables
1625
1617
  WHERE table_type = 'BASE TABLE' AND table_schema = '{schema}'
1626
- """.format(
1627
- schema=schema or ""
1628
- )
1618
+ """.format(schema=schema or "")
1629
1619
 
1630
1620
  table_names = []
1631
1621
  with connection.connection.database.snapshot() as snap:
@@ -1661,9 +1651,7 @@ WHERE
1661
1651
  AND tc.TABLE_SCHEMA="{table_schema}"
1662
1652
  AND tc.CONSTRAINT_TYPE = "UNIQUE"
1663
1653
  AND tc.CONSTRAINT_NAME IS NOT NULL
1664
- """.format(
1665
- table_schema=schema or "", table_name=table_name
1666
- )
1654
+ """.format(table_schema=schema or "", table_name=table_name)
1667
1655
 
1668
1656
  cols = []
1669
1657
  with connection.connection.database.snapshot() as snap:
@@ -1696,9 +1684,7 @@ SELECT true
1696
1684
  FROM INFORMATION_SCHEMA.TABLES
1697
1685
  WHERE TABLE_SCHEMA="{table_schema}" AND TABLE_NAME="{table_name}"
1698
1686
  LIMIT 1
1699
- """.format(
1700
- table_schema=schema or "", table_name=table_name
1701
- )
1687
+ """.format(table_schema=schema or "", table_name=table_name)
1702
1688
  )
1703
1689
 
1704
1690
  for _ in rows:
@@ -1723,9 +1709,7 @@ LIMIT 1
1723
1709
  WHERE NAME="{sequence_name}"
1724
1710
  AND SCHEMA="{schema}"
1725
1711
  LIMIT 1
1726
- """.format(
1727
- sequence_name=sequence_name, schema=schema or ""
1728
- )
1712
+ """.format(sequence_name=sequence_name, schema=schema or "")
1729
1713
  )
1730
1714
 
1731
1715
  for _ in rows:
@@ -4,4 +4,4 @@
4
4
  # license that can be found in the LICENSE file or at
5
5
  # https://developers.google.com/open-source/licenses/bsd
6
6
 
7
- __version__ = "1.18.0"
7
+ __version__ = "1.19.0"
@@ -58,11 +58,10 @@ setuptools.setup(
58
58
  author="Google LLC",
59
59
  author_email="googleapis-packages@google.com",
60
60
  license="Apache 2.0",
61
+ python_requires=">=3.10",
61
62
  classifiers=[
62
63
  "Intended Audience :: Developers",
63
64
  "License :: OSI Approved :: Apache Software License",
64
- "Programming Language :: Python :: 3.8",
65
- "Programming Language :: Python :: 3.9",
66
65
  "Programming Language :: Python :: 3.10",
67
66
  "Programming Language :: Python :: 3.11",
68
67
  "Programming Language :: Python :: 3.12",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlalchemy-spanner
3
- Version: 1.18.0
3
+ Version: 1.19.0
4
4
  Summary: SQLAlchemy dialect integrated into Cloud Spanner database
5
5
  Home-page: https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy
6
6
  Author: Google LLC
@@ -8,13 +8,12 @@ Author-email: googleapis-packages@google.com
8
8
  License: Apache 2.0
9
9
  Classifier: Intended Audience :: Developers
10
10
  Classifier: License :: OSI Approved :: Apache Software License
11
- Classifier: Programming Language :: Python :: 3.8
12
- Classifier: Programming Language :: Python :: 3.9
13
11
  Classifier: Programming Language :: Python :: 3.10
14
12
  Classifier: Programming Language :: Python :: 3.11
15
13
  Classifier: Programming Language :: Python :: 3.12
16
14
  Classifier: Programming Language :: Python :: 3.13
17
15
  Classifier: Programming Language :: Python :: 3.14
16
+ Requires-Python: >=3.10
18
17
  License-File: LICENSE
19
18
  Requires-Dist: sqlalchemy>=1.1.13
20
19
  Requires-Dist: google-cloud-spanner>=3.55.0
@@ -32,6 +31,7 @@ Dynamic: license
32
31
  Dynamic: license-file
33
32
  Dynamic: provides-extra
34
33
  Dynamic: requires-dist
34
+ Dynamic: requires-python
35
35
  Dynamic: summary
36
36
 
37
37
  Spanner dialect for SQLAlchemy
@@ -18,113 +18,156 @@ import datetime
18
18
  import decimal
19
19
  import operator
20
20
  import os
21
- import pytest
22
21
  import random
23
22
  import time
24
23
  from unittest import mock
25
24
 
26
- from google.cloud.spanner_v1 import RequestOptions, Client
27
-
25
+ import pytest
28
26
  import sqlalchemy
29
- from sqlalchemy import create_engine
30
- from sqlalchemy import inspect
31
- from sqlalchemy import testing
32
- from sqlalchemy import ForeignKey
33
- from sqlalchemy import MetaData
34
- from sqlalchemy.schema import DDL
35
- from sqlalchemy.schema import Computed
36
- from sqlalchemy.testing import config
37
- from sqlalchemy.testing import engines
38
- from sqlalchemy.testing import eq_
39
- from sqlalchemy.testing import is_instance_of
40
- from sqlalchemy.testing import provide_metadata, emits_warning
41
- from sqlalchemy.testing import fixtures
42
- from sqlalchemy.testing import is_true
43
- from sqlalchemy.testing.schema import Column
44
- from sqlalchemy.testing.schema import Table
45
- from sqlalchemy import literal_column
46
- from sqlalchemy import select
47
- from sqlalchemy import util
48
- from sqlalchemy import event
49
- from sqlalchemy import exists
50
- from sqlalchemy import Boolean
51
- from sqlalchemy import Float
52
- from sqlalchemy import LargeBinary
53
- from sqlalchemy import String
27
+ from google.api_core.datetime_helpers import DatetimeWithNanoseconds
28
+ from google.cloud.spanner_v1 import Client, RequestOptions
29
+ from sqlalchemy import (
30
+ Boolean,
31
+ Float,
32
+ ForeignKey,
33
+ LargeBinary,
34
+ MetaData,
35
+ String,
36
+ create_engine,
37
+ event,
38
+ exists,
39
+ inspect,
40
+ literal_column,
41
+ select,
42
+ testing,
43
+ util,
44
+ )
54
45
  from sqlalchemy.ext.declarative import declarative_base
55
- from sqlalchemy.orm import relation
56
- from sqlalchemy.orm import Session
57
- from sqlalchemy.types import ARRAY
58
- from sqlalchemy.types import Integer
59
- from sqlalchemy.types import Numeric
60
- from sqlalchemy.types import Text
61
- from sqlalchemy.testing import requires
46
+ from sqlalchemy.orm import Session, relation
47
+ from sqlalchemy.schema import DDL, Computed
48
+ from sqlalchemy.testing import (
49
+ config,
50
+ emits_warning,
51
+ engines,
52
+ eq_,
53
+ fixtures,
54
+ is_instance_of,
55
+ is_true,
56
+ provide_metadata,
57
+ requires,
58
+ )
62
59
  from sqlalchemy.testing.fixtures import (
63
60
  ComputedReflectionFixtureTest as _ComputedReflectionFixtureTest,
64
61
  )
65
-
66
- from google.api_core.datetime_helpers import DatetimeWithNanoseconds
67
- from google.cloud import spanner_dbapi
68
-
62
+ from sqlalchemy.testing.schema import Column, Table
69
63
  from sqlalchemy.testing.suite.test_cte import * # noqa: F401, F403
70
- from sqlalchemy.testing.suite.test_ddl import * # noqa: F401, F403
71
- from sqlalchemy.testing.suite.test_dialect import * # noqa: F401, F403
72
- from sqlalchemy.testing.suite.test_insert import * # noqa: F401, F403
73
- from sqlalchemy.testing.suite.test_reflection import * # noqa: F401, F403
74
- from sqlalchemy.testing.suite.test_results import * # noqa: F401, F403
75
- from sqlalchemy.testing.suite.test_select import * # noqa: F401, F403
76
- from sqlalchemy.testing.suite.test_sequence import (
77
- SequenceTest as _SequenceTest,
78
- HasSequenceTest as _HasSequenceTest,
79
- ) # noqa: F401, F403
80
- from sqlalchemy.testing.suite.test_update_delete import * # noqa: F401, F403
81
-
82
64
  from sqlalchemy.testing.suite.test_cte import CTETest as _CTETest
83
- from sqlalchemy.testing.suite.test_ddl import TableDDLTest as _TableDDLTest
65
+ from sqlalchemy.testing.suite.test_ddl import * # noqa: F401, F403
84
66
  from sqlalchemy.testing.suite.test_ddl import (
85
67
  LongNameBlowoutTest as _LongNameBlowoutTest,
86
68
  )
69
+ from sqlalchemy.testing.suite.test_ddl import TableDDLTest as _TableDDLTest
70
+ from sqlalchemy.testing.suite.test_dialect import * # noqa: F401, F403
87
71
  from sqlalchemy.testing.suite.test_dialect import EscapingTest as _EscapingTest
72
+ from sqlalchemy.testing.suite.test_insert import * # noqa: F401, F403
88
73
  from sqlalchemy.testing.suite.test_insert import (
89
74
  InsertBehaviorTest as _InsertBehaviorTest,
90
75
  )
76
+ from sqlalchemy.testing.suite.test_reflection import * # noqa: F401, F403
77
+ from sqlalchemy.testing.suite.test_reflection import (
78
+ ComponentReflectionTest as _ComponentReflectionTest,
79
+ )
80
+ from sqlalchemy.testing.suite.test_reflection import (
81
+ CompositeKeyReflectionTest as _CompositeKeyReflectionTest,
82
+ )
83
+ from sqlalchemy.testing.suite.test_reflection import (
84
+ ComputedReflectionTest as _ComputedReflectionTest,
85
+ )
86
+ from sqlalchemy.testing.suite.test_reflection import (
87
+ QuotedNameArgumentTest as _QuotedNameArgumentTest,
88
+ )
89
+ from sqlalchemy.testing.suite.test_results import * # noqa: F401, F403
90
+ from sqlalchemy.testing.suite.test_results import RowFetchTest as _RowFetchTest
91
+ from sqlalchemy.testing.suite.test_select import * # noqa: F401, F403
91
92
  from sqlalchemy.testing.suite.test_select import ( # noqa: F401, F403
92
93
  CompoundSelectTest as _CompoundSelectTest,
94
+ )
95
+ from sqlalchemy.testing.suite.test_select import (
93
96
  ExistsTest as _ExistsTest,
97
+ )
98
+ from sqlalchemy.testing.suite.test_select import (
94
99
  IsOrIsNotDistinctFromTest as _IsOrIsNotDistinctFromTest,
100
+ )
101
+ from sqlalchemy.testing.suite.test_select import (
95
102
  LikeFunctionsTest as _LikeFunctionsTest,
103
+ )
104
+ from sqlalchemy.testing.suite.test_select import (
96
105
  OrderByLabelTest as _OrderByLabelTest,
97
106
  )
98
- from sqlalchemy.testing.suite.test_reflection import (
99
- QuotedNameArgumentTest as _QuotedNameArgumentTest,
100
- ComponentReflectionTest as _ComponentReflectionTest,
101
- CompositeKeyReflectionTest as _CompositeKeyReflectionTest,
102
- ComputedReflectionTest as _ComputedReflectionTest,
107
+ from sqlalchemy.testing.suite.test_sequence import (
108
+ HasSequenceTest as _HasSequenceTest,
103
109
  )
104
- from sqlalchemy.testing.suite.test_results import RowFetchTest as _RowFetchTest
105
- from sqlalchemy.testing.suite.test_types import ( # noqa: F401, F403
106
- _DateFixture as _DateFixtureTest,
107
- _LiteralRoundTripFixture,
108
- _UnicodeFixture as _UnicodeFixtureTest,
110
+ from sqlalchemy.testing.suite.test_sequence import (
111
+ SequenceTest as _SequenceTest,
112
+ ) # noqa: F401, F403
113
+ from sqlalchemy.testing.suite.test_types import (
109
114
  BooleanTest as _BooleanTest,
115
+ )
116
+ from sqlalchemy.testing.suite.test_types import (
110
117
  DateTest as _DateTest,
111
- DateTimeHistoricTest,
118
+ )
119
+ from sqlalchemy.testing.suite.test_types import (
112
120
  DateTimeCoercedToDateTimeTest as _DateTimeCoercedToDateTimeTest,
121
+ )
122
+ from sqlalchemy.testing.suite.test_types import ( # noqa: F401
123
+ DateTimeHistoricTest,
124
+ TimestampMicrosecondsTest,
125
+ _LiteralRoundTripFixture,
126
+ )
127
+ from sqlalchemy.testing.suite.test_types import (
113
128
  DateTimeMicrosecondsTest as _DateTimeMicrosecondsTest,
129
+ )
130
+ from sqlalchemy.testing.suite.test_types import (
114
131
  DateTimeTest as _DateTimeTest,
132
+ )
133
+ from sqlalchemy.testing.suite.test_types import (
115
134
  IntegerTest as _IntegerTest,
135
+ )
136
+ from sqlalchemy.testing.suite.test_types import (
116
137
  JSONTest as _JSONTest,
138
+ )
139
+ from sqlalchemy.testing.suite.test_types import (
117
140
  NumericTest as _NumericTest,
141
+ )
142
+ from sqlalchemy.testing.suite.test_types import (
118
143
  StringTest as _StringTest,
144
+ )
145
+ from sqlalchemy.testing.suite.test_types import (
119
146
  TextTest as _TextTest,
120
- TimeTest as _TimeTest,
147
+ )
148
+ from sqlalchemy.testing.suite.test_types import (
121
149
  TimeMicrosecondsTest as _TimeMicrosecondsTest,
122
- TimestampMicrosecondsTest,
123
- UnicodeVarcharTest as _UnicodeVarcharTest,
150
+ )
151
+ from sqlalchemy.testing.suite.test_types import (
152
+ TimeTest as _TimeTest,
153
+ )
154
+ from sqlalchemy.testing.suite.test_types import (
124
155
  UnicodeTextTest as _UnicodeTextTest,
125
156
  )
157
+ from sqlalchemy.testing.suite.test_types import (
158
+ UnicodeVarcharTest as _UnicodeVarcharTest,
159
+ )
160
+ from sqlalchemy.testing.suite.test_types import ( # noqa: F401, F403
161
+ _DateFixture as _DateFixtureTest,
162
+ )
163
+ from sqlalchemy.testing.suite.test_types import (
164
+ _UnicodeFixture as _UnicodeFixtureTest,
165
+ )
166
+ from sqlalchemy.testing.suite.test_update_delete import * # noqa: F401, F403
167
+ from sqlalchemy.types import ARRAY, Integer, Numeric, Text
126
168
  from test._helpers import get_db_url, get_project
127
169
 
170
+ from google.cloud import spanner_dbapi
128
171
  from google.cloud.sqlalchemy_spanner import version as sqlalchemy_spanner_version
129
172
 
130
173
  config.test_schema = ""
@@ -741,7 +784,7 @@ class ComponentReflectionTest(_ComponentReflectionTest):
741
784
  event.listen(
742
785
  user_tmp,
743
786
  "after_create",
744
- DDL("create temporary view user_tmp_v as " "select * from user_tmp"),
787
+ DDL("create temporary view user_tmp_v as select * from user_tmp"),
745
788
  )
746
789
  event.listen(user_tmp, "before_drop", DDL("drop view user_tmp_v"))
747
790
 
@@ -14,136 +14,199 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
 
17
- from datetime import timezone
18
17
  import decimal
19
18
  import operator
20
19
  import os
21
- import pytest
22
20
  import random
23
21
  import time
22
+ from datetime import timezone
24
23
  from unittest import mock
25
24
 
26
- from google.cloud.spanner_v1 import RequestOptions, Client
27
-
25
+ import pytest
28
26
  import sqlalchemy
29
- from sqlalchemy import create_engine, literal, FLOAT
30
- from sqlalchemy import inspect
31
- from sqlalchemy import testing
32
- from sqlalchemy import ForeignKey
33
- from sqlalchemy import MetaData
34
- from sqlalchemy.schema import DDL
35
- from sqlalchemy.schema import Computed
36
- from sqlalchemy.testing import config
37
- from sqlalchemy.testing import engines
38
- from sqlalchemy.testing import eq_
39
- from sqlalchemy.testing import is_instance_of
40
- from sqlalchemy.testing import provide_metadata, emits_warning
41
- from sqlalchemy.testing import fixtures
42
- from sqlalchemy.testing.provision import temp_table_keyword_args
43
- from sqlalchemy.testing.schema import Column
44
- from sqlalchemy.testing.schema import Table
45
- from sqlalchemy import literal_column
46
- from sqlalchemy import select
47
- from sqlalchemy import util
48
- from sqlalchemy import union
49
- from sqlalchemy import event
50
- from sqlalchemy import exists
51
- from sqlalchemy import Boolean
52
- from sqlalchemy import Float
53
- from sqlalchemy import LargeBinary
54
- from sqlalchemy import String
55
- from sqlalchemy.sql.expression import cast
56
- from sqlalchemy.ext.declarative import declarative_base
57
- from sqlalchemy.orm import relation
58
- from sqlalchemy.orm import Session
59
- from sqlalchemy.types import Integer
60
- from sqlalchemy.types import Numeric
61
- from sqlalchemy.types import Text
62
- from sqlalchemy.testing import requires
63
- from sqlalchemy.testing import is_true
27
+ from google.api_core.datetime_helpers import DatetimeWithNanoseconds
28
+ from google.cloud.spanner_v1 import Client, RequestOptions
29
+ from sqlalchemy import (
30
+ FLOAT,
31
+ Boolean,
32
+ Float,
33
+ ForeignKey,
34
+ LargeBinary,
35
+ MetaData,
36
+ String,
37
+ create_engine,
38
+ event,
39
+ exists,
40
+ inspect,
41
+ literal,
42
+ literal_column,
43
+ select,
44
+ testing,
45
+ union,
46
+ util,
47
+ )
64
48
  from sqlalchemy import types as sql_types
49
+ from sqlalchemy.ext.declarative import declarative_base
50
+ from sqlalchemy.orm import Session, relation
51
+ from sqlalchemy.schema import DDL, Computed
52
+ from sqlalchemy.sql.expression import cast
53
+ from sqlalchemy.testing import (
54
+ config,
55
+ emits_warning,
56
+ engines,
57
+ eq_,
58
+ fixtures,
59
+ is_instance_of,
60
+ is_true,
61
+ provide_metadata,
62
+ requires,
63
+ )
65
64
  from sqlalchemy.testing.fixtures import (
66
65
  ComputedReflectionFixtureTest as _ComputedReflectionFixtureTest,
67
66
  )
68
-
69
- from google.api_core.datetime_helpers import DatetimeWithNanoseconds
70
-
71
- from google.cloud import spanner_dbapi
72
-
67
+ from sqlalchemy.testing.provision import temp_table_keyword_args
68
+ from sqlalchemy.testing.schema import Column, Table
73
69
  from sqlalchemy.testing.suite.test_cte import * # noqa: F401, F403
74
- from sqlalchemy.testing.suite.test_ddl import * # noqa: F401, F403
75
- from sqlalchemy.testing.suite.test_dialect import * # noqa: F401, F403
76
- from sqlalchemy.testing.suite.test_insert import * # noqa: F401, F403
77
- from sqlalchemy.testing.suite.test_reflection import * # noqa: F401, F403
78
- from sqlalchemy.testing.suite.test_results import * # noqa: F401, F403
79
- from sqlalchemy.testing.suite.test_select import * # noqa: F401, F403
80
- from sqlalchemy.testing.suite.test_sequence import (
81
- SequenceTest as _SequenceTest,
82
- HasSequenceTest as _HasSequenceTest,
83
- HasSequenceTestEmpty as _HasSequenceTestEmpty,
84
- ) # noqa: F401, F403
85
- from sqlalchemy.testing.suite.test_update_delete import * # noqa: F401, F403
86
70
  from sqlalchemy.testing.suite.test_cte import CTETest as _CTETest
87
- from sqlalchemy.testing.suite.test_ddl import TableDDLTest as _TableDDLTest
71
+ from sqlalchemy.testing.suite.test_ddl import * # noqa: F401, F403
88
72
  from sqlalchemy.testing.suite.test_ddl import (
89
73
  FutureTableDDLTest as _FutureTableDDLTest,
90
- LongNameBlowoutTest as _LongNameBlowoutTest,
91
74
  )
92
- from sqlalchemy.testing.suite.test_update_delete import (
93
- SimpleUpdateDeleteTest as _SimpleUpdateDeleteTest,
75
+ from sqlalchemy.testing.suite.test_ddl import (
76
+ LongNameBlowoutTest as _LongNameBlowoutTest,
94
77
  )
78
+ from sqlalchemy.testing.suite.test_ddl import TableDDLTest as _TableDDLTest
79
+ from sqlalchemy.testing.suite.test_dialect import * # noqa: F401, F403
95
80
  from sqlalchemy.testing.suite.test_dialect import (
96
81
  DifficultParametersTest as _DifficultParametersTest,
82
+ )
83
+ from sqlalchemy.testing.suite.test_dialect import (
97
84
  EscapingTest as _EscapingTest,
98
85
  )
86
+ from sqlalchemy.testing.suite.test_insert import * # noqa: F401, F403
99
87
  from sqlalchemy.testing.suite.test_insert import (
100
88
  InsertBehaviorTest as _InsertBehaviorTest,
101
89
  )
90
+ from sqlalchemy.testing.suite.test_reflection import * # noqa: F401, F403
91
+ from sqlalchemy.testing.suite.test_reflection import (
92
+ ComponentReflectionTest as _ComponentReflectionTest,
93
+ )
94
+ from sqlalchemy.testing.suite.test_reflection import (
95
+ ComponentReflectionTestExtra as _ComponentReflectionTestExtra,
96
+ )
97
+ from sqlalchemy.testing.suite.test_reflection import (
98
+ CompositeKeyReflectionTest as _CompositeKeyReflectionTest,
99
+ )
100
+ from sqlalchemy.testing.suite.test_reflection import (
101
+ ComputedReflectionTest as _ComputedReflectionTest,
102
+ )
103
+ from sqlalchemy.testing.suite.test_reflection import (
104
+ HasIndexTest as _HasIndexTest,
105
+ )
106
+ from sqlalchemy.testing.suite.test_reflection import (
107
+ HasTableTest as _HasTableTest,
108
+ )
109
+ from sqlalchemy.testing.suite.test_reflection import (
110
+ QuotedNameArgumentTest as _QuotedNameArgumentTest,
111
+ )
112
+ from sqlalchemy.testing.suite.test_results import * # noqa: F401, F403
113
+ from sqlalchemy.testing.suite.test_results import RowFetchTest as _RowFetchTest
114
+ from sqlalchemy.testing.suite.test_select import * # noqa: F401, F403
102
115
  from sqlalchemy.testing.suite.test_select import ( # noqa: F401, F403
103
116
  CompoundSelectTest as _CompoundSelectTest,
117
+ )
118
+ from sqlalchemy.testing.suite.test_select import (
104
119
  ExistsTest as _ExistsTest,
120
+ )
121
+ from sqlalchemy.testing.suite.test_select import (
105
122
  FetchLimitOffsetTest as _FetchLimitOffsetTest,
123
+ )
124
+ from sqlalchemy.testing.suite.test_select import (
106
125
  IdentityAutoincrementTest as _IdentityAutoincrementTest,
126
+ )
127
+ from sqlalchemy.testing.suite.test_select import (
107
128
  IsOrIsNotDistinctFromTest as _IsOrIsNotDistinctFromTest,
129
+ )
130
+ from sqlalchemy.testing.suite.test_select import (
108
131
  LikeFunctionsTest as _LikeFunctionsTest,
132
+ )
133
+ from sqlalchemy.testing.suite.test_select import (
109
134
  OrderByLabelTest as _OrderByLabelTest,
135
+ )
136
+ from sqlalchemy.testing.suite.test_select import (
110
137
  PostCompileParamsTest as _PostCompileParamsTest,
111
138
  )
112
- from sqlalchemy.testing.suite.test_reflection import (
113
- ComponentReflectionTestExtra as _ComponentReflectionTestExtra,
114
- QuotedNameArgumentTest as _QuotedNameArgumentTest,
115
- ComponentReflectionTest as _ComponentReflectionTest,
116
- CompositeKeyReflectionTest as _CompositeKeyReflectionTest,
117
- ComputedReflectionTest as _ComputedReflectionTest,
118
- HasIndexTest as _HasIndexTest,
119
- HasTableTest as _HasTableTest,
139
+ from sqlalchemy.testing.suite.test_sequence import (
140
+ HasSequenceTest as _HasSequenceTest,
120
141
  )
121
- from sqlalchemy.testing.suite.test_results import RowFetchTest as _RowFetchTest
142
+ from sqlalchemy.testing.suite.test_sequence import (
143
+ HasSequenceTestEmpty as _HasSequenceTestEmpty,
144
+ )
145
+ from sqlalchemy.testing.suite.test_sequence import (
146
+ SequenceTest as _SequenceTest,
147
+ ) # noqa: F401, F403
122
148
  from sqlalchemy.testing.suite.test_types import ( # noqa: F401, F403
123
149
  BooleanTest as _BooleanTest,
150
+ )
151
+ from sqlalchemy.testing.suite.test_types import (
124
152
  DateTest as _DateTest,
125
- _DateFixture as __DateFixture,
126
- DateTimeHistoricTest,
153
+ )
154
+ from sqlalchemy.testing.suite.test_types import (
127
155
  DateTimeCoercedToDateTimeTest as _DateTimeCoercedToDateTimeTest,
156
+ )
157
+ from sqlalchemy.testing.suite.test_types import ( # noqa: F401
158
+ DateTimeHistoricTest,
159
+ TimestampMicrosecondsTest,
160
+ _LiteralRoundTripFixture,
161
+ )
162
+ from sqlalchemy.testing.suite.test_types import (
128
163
  DateTimeMicrosecondsTest as _DateTimeMicrosecondsTest,
164
+ )
165
+ from sqlalchemy.testing.suite.test_types import (
129
166
  DateTimeTest as _DateTimeTest,
167
+ )
168
+ from sqlalchemy.testing.suite.test_types import (
130
169
  IntegerTest as _IntegerTest,
170
+ )
171
+ from sqlalchemy.testing.suite.test_types import (
131
172
  JSONTest as _JSONTest,
132
- _LiteralRoundTripFixture,
173
+ )
174
+ from sqlalchemy.testing.suite.test_types import (
133
175
  NumericTest as _NumericTest,
176
+ )
177
+ from sqlalchemy.testing.suite.test_types import (
134
178
  StringTest as _StringTest,
179
+ )
180
+ from sqlalchemy.testing.suite.test_types import (
135
181
  TextTest as _TextTest,
136
- TimeTest as _TimeTest,
182
+ )
183
+ from sqlalchemy.testing.suite.test_types import (
137
184
  TimeMicrosecondsTest as _TimeMicrosecondsTest,
138
- TimestampMicrosecondsTest,
139
- UnicodeVarcharTest as _UnicodeVarcharTest,
185
+ )
186
+ from sqlalchemy.testing.suite.test_types import (
187
+ TimeTest as _TimeTest,
188
+ )
189
+ from sqlalchemy.testing.suite.test_types import (
140
190
  UnicodeTextTest as _UnicodeTextTest,
191
+ )
192
+ from sqlalchemy.testing.suite.test_types import (
193
+ UnicodeVarcharTest as _UnicodeVarcharTest,
194
+ )
195
+ from sqlalchemy.testing.suite.test_types import (
196
+ _DateFixture as __DateFixture,
197
+ )
198
+ from sqlalchemy.testing.suite.test_types import (
141
199
  _UnicodeFixture as __UnicodeFixture,
142
200
  )
143
- from tests._helpers import get_db_url, get_project
201
+ from sqlalchemy.testing.suite.test_update_delete import * # noqa: F401, F403
202
+ from sqlalchemy.testing.suite.test_update_delete import (
203
+ SimpleUpdateDeleteTest as _SimpleUpdateDeleteTest,
204
+ )
205
+ from sqlalchemy.types import Integer, Numeric, Text
144
206
 
207
+ from google.cloud import spanner_dbapi
145
208
  from google.cloud.sqlalchemy_spanner import version as sqlalchemy_spanner_version
146
-
209
+ from tests._helpers import get_db_url, get_project
147
210
 
148
211
  config.test_schema = ""
149
212
 
@@ -633,7 +696,7 @@ class ComponentReflectionTest(_ComponentReflectionTest):
633
696
  event.listen(
634
697
  user_tmp,
635
698
  "after_create",
636
- DDL("create temporary view user_tmp_v as " "select * from user_tmp"),
699
+ DDL("create temporary view user_tmp_v as select * from user_tmp"),
637
700
  )
638
701
  event.listen(user_tmp, "before_drop", DDL("drop view user_tmp_v"))
639
702
 
@@ -1996,7 +2059,7 @@ class PostCompileParamsTest(_PostCompileParamsTest):
1996
2059
 
1997
2060
  asserter.assert_(
1998
2061
  sqlalchemy.testing.assertsql.CursorSQL(
1999
- "SELECT some_table.id \nFROM some_table " "\nWHERE some_table.x = 10",
2062
+ "SELECT some_table.id \nFROM some_table \nWHERE some_table.x = 10",
2000
2063
  [] if config.db.dialect.positional else {},
2001
2064
  )
2002
2065
  )
@@ -14,152 +14,217 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
 
17
- from datetime import timezone
18
17
  import decimal
19
18
  import operator
20
19
  import os
21
- import pytest
22
20
  import random
23
21
  import time
22
+ from datetime import timezone
24
23
  from unittest import mock
25
24
 
26
- from google.cloud.spanner_v1 import RequestOptions, Client
25
+ import pytest
27
26
  import sqlalchemy
28
- from sqlalchemy import create_engine, literal, FLOAT
29
- from sqlalchemy.engine import Inspector
30
- from sqlalchemy import inspect
31
- from sqlalchemy import testing
32
- from sqlalchemy import ForeignKey
33
- from sqlalchemy import MetaData
34
- from sqlalchemy.engine import ObjectKind
35
- from sqlalchemy.engine import ObjectScope
36
- from sqlalchemy.schema import DDL
37
- from sqlalchemy.schema import Computed
38
- from sqlalchemy.testing import config
39
- from sqlalchemy.testing import engines
40
- from sqlalchemy.testing import eq_
41
- from sqlalchemy.testing import is_instance_of
42
- from sqlalchemy.testing import provide_metadata, emits_warning
43
- from sqlalchemy.testing import is_true
44
- from sqlalchemy.testing import fixtures
45
- from sqlalchemy.testing.provision import temp_table_keyword_args
46
- from sqlalchemy.testing.schema import Column
47
- from sqlalchemy.testing.schema import Table
48
- from sqlalchemy import literal_column
49
- from sqlalchemy import select
50
- from sqlalchemy import util
51
- from sqlalchemy import union
52
- from sqlalchemy import event
53
- from sqlalchemy import exists
54
- from sqlalchemy import Boolean
55
- from sqlalchemy import Float
56
- from sqlalchemy import LargeBinary
57
- from sqlalchemy import String
58
- from sqlalchemy.sql.expression import cast
27
+ from google.api_core.datetime_helpers import DatetimeWithNanoseconds
28
+ from google.cloud.spanner_v1 import Client, RequestOptions
29
+ from sqlalchemy import (
30
+ FLOAT,
31
+ Boolean,
32
+ Float,
33
+ ForeignKey,
34
+ Index,
35
+ LargeBinary,
36
+ MetaData,
37
+ String,
38
+ create_engine,
39
+ event,
40
+ exists,
41
+ inspect,
42
+ literal,
43
+ literal_column,
44
+ select,
45
+ testing,
46
+ types,
47
+ union,
48
+ util,
49
+ )
50
+ from sqlalchemy.engine import Inspector, ObjectKind, ObjectScope
59
51
  from sqlalchemy.ext.declarative import declarative_base
60
- from sqlalchemy.orm import relationship
61
- from sqlalchemy.orm import Session
62
- from sqlalchemy.types import Integer
63
- from sqlalchemy.types import Numeric
64
-
65
- from sqlalchemy.types import Text
66
- from sqlalchemy.testing import requires
67
- from sqlalchemy import Index
68
- from sqlalchemy import types
52
+ from sqlalchemy.orm import Session, relationship
53
+ from sqlalchemy.schema import DDL, Computed
54
+ from sqlalchemy.sql.expression import cast
55
+ from sqlalchemy.testing import (
56
+ config,
57
+ emits_warning,
58
+ engines,
59
+ eq_,
60
+ fixtures,
61
+ is_instance_of,
62
+ is_true,
63
+ provide_metadata,
64
+ requires,
65
+ )
69
66
  from sqlalchemy.testing.fixtures import (
70
67
  ComputedReflectionFixtureTest as _ComputedReflectionFixtureTest,
71
68
  )
72
-
73
- from google.api_core.datetime_helpers import DatetimeWithNanoseconds
74
-
75
- from google.cloud import spanner_dbapi
76
-
69
+ from sqlalchemy.testing.provision import temp_table_keyword_args
70
+ from sqlalchemy.testing.schema import Column, Table
77
71
  from sqlalchemy.testing.suite.test_cte import * # noqa: F401, F403
78
- from sqlalchemy.testing.suite.test_ddl import * # noqa: F401, F403
79
- from sqlalchemy.testing.suite.test_dialect import * # noqa: F401, F403
80
- from sqlalchemy.testing.suite.test_insert import * # noqa: F401, F403
81
- from sqlalchemy.testing.suite.test_reflection import * # noqa: F401, F403
82
- from sqlalchemy.testing.suite.test_deprecations import * # noqa: F401, F403
83
- from sqlalchemy.testing.suite.test_results import * # noqa: F401, F403
84
- from sqlalchemy.testing.suite.test_select import (
85
- BitwiseTest as _BitwiseTest,
86
- ) # noqa: F401, F403
87
- from sqlalchemy.testing.suite.test_sequence import (
88
- SequenceTest as _SequenceTest,
89
- HasSequenceTest as _HasSequenceTest,
90
- HasSequenceTestEmpty as _HasSequenceTestEmpty,
91
- ) # noqa: F401, F403
92
- from sqlalchemy.testing.suite.test_unicode_ddl import * # noqa: F401, F403
93
- from sqlalchemy.testing.suite.test_update_delete import * # noqa: F401, F403
94
72
  from sqlalchemy.testing.suite.test_cte import CTETest as _CTETest
95
- from sqlalchemy.testing.suite.test_ddl import TableDDLTest as _TableDDLTest
73
+ from sqlalchemy.testing.suite.test_ddl import * # noqa: F401, F403
96
74
  from sqlalchemy.testing.suite.test_ddl import (
97
75
  FutureTableDDLTest as _FutureTableDDLTest,
98
- LongNameBlowoutTest as _LongNameBlowoutTest,
99
76
  )
100
- from sqlalchemy.testing.suite.test_update_delete import (
101
- SimpleUpdateDeleteTest as _SimpleUpdateDeleteTest,
77
+ from sqlalchemy.testing.suite.test_ddl import (
78
+ LongNameBlowoutTest as _LongNameBlowoutTest,
102
79
  )
80
+ from sqlalchemy.testing.suite.test_ddl import TableDDLTest as _TableDDLTest
81
+ from sqlalchemy.testing.suite.test_deprecations import * # noqa: F401, F403
82
+ from sqlalchemy.testing.suite.test_dialect import * # noqa: F401, F403
103
83
  from sqlalchemy.testing.suite.test_dialect import (
104
84
  DifficultParametersTest as _DifficultParametersTest,
85
+ )
86
+ from sqlalchemy.testing.suite.test_dialect import (
105
87
  EscapingTest as _EscapingTest,
88
+ )
89
+ from sqlalchemy.testing.suite.test_dialect import (
106
90
  ReturningGuardsTest as _ReturningGuardsTest,
107
91
  )
92
+ from sqlalchemy.testing.suite.test_insert import * # noqa: F401, F403
108
93
  from sqlalchemy.testing.suite.test_insert import (
109
94
  InsertBehaviorTest as _InsertBehaviorTest,
110
95
  )
96
+ from sqlalchemy.testing.suite.test_reflection import * # noqa: F401, F403
97
+ from sqlalchemy.testing.suite.test_reflection import (
98
+ ComponentReflectionTest as _ComponentReflectionTest,
99
+ )
100
+ from sqlalchemy.testing.suite.test_reflection import ( # noqa: F401, F403
101
+ ComponentReflectionTestExtra as _ComponentReflectionTestExtra,
102
+ )
103
+ from sqlalchemy.testing.suite.test_reflection import (
104
+ CompositeKeyReflectionTest as _CompositeKeyReflectionTest,
105
+ )
106
+ from sqlalchemy.testing.suite.test_reflection import (
107
+ ComputedReflectionTest as _ComputedReflectionTest,
108
+ )
109
+ from sqlalchemy.testing.suite.test_reflection import (
110
+ HasIndexTest as _HasIndexTest,
111
+ )
112
+ from sqlalchemy.testing.suite.test_reflection import (
113
+ HasTableTest as _HasTableTest,
114
+ )
115
+ from sqlalchemy.testing.suite.test_reflection import (
116
+ QuotedNameArgumentTest as _QuotedNameArgumentTest,
117
+ )
118
+ from sqlalchemy.testing.suite.test_results import * # noqa: F401, F403
119
+ from sqlalchemy.testing.suite.test_results import (
120
+ RowFetchTest as _RowFetchTest,
121
+ )
122
+ from sqlalchemy.testing.suite.test_select import (
123
+ BitwiseTest as _BitwiseTest,
124
+ ) # noqa: F401, F403
111
125
  from sqlalchemy.testing.suite.test_select import ( # noqa: F401, F403
112
126
  CompoundSelectTest as _CompoundSelectTest,
127
+ )
128
+ from sqlalchemy.testing.suite.test_select import (
113
129
  ExistsTest as _ExistsTest,
130
+ )
131
+ from sqlalchemy.testing.suite.test_select import (
114
132
  FetchLimitOffsetTest as _FetchLimitOffsetTest,
133
+ )
134
+ from sqlalchemy.testing.suite.test_select import (
115
135
  IdentityAutoincrementTest as _IdentityAutoincrementTest,
136
+ )
137
+ from sqlalchemy.testing.suite.test_select import (
116
138
  IsOrIsNotDistinctFromTest as _IsOrIsNotDistinctFromTest,
139
+ )
140
+ from sqlalchemy.testing.suite.test_select import (
117
141
  LikeFunctionsTest as _LikeFunctionsTest,
142
+ )
143
+ from sqlalchemy.testing.suite.test_select import (
118
144
  OrderByLabelTest as _OrderByLabelTest,
145
+ )
146
+ from sqlalchemy.testing.suite.test_select import (
119
147
  PostCompileParamsTest as _PostCompileParamsTest,
148
+ )
149
+ from sqlalchemy.testing.suite.test_select import (
120
150
  SameNamedSchemaTableTest as _SameNamedSchemaTableTest,
121
151
  )
122
- from sqlalchemy.testing.suite.test_reflection import ( # noqa: F401, F403
123
- ComponentReflectionTestExtra as _ComponentReflectionTestExtra,
124
- QuotedNameArgumentTest as _QuotedNameArgumentTest,
125
- ComponentReflectionTest as _ComponentReflectionTest,
126
- CompositeKeyReflectionTest as _CompositeKeyReflectionTest,
127
- ComputedReflectionTest as _ComputedReflectionTest,
128
- HasIndexTest as _HasIndexTest,
129
- HasTableTest as _HasTableTest,
152
+ from sqlalchemy.testing.suite.test_sequence import (
153
+ HasSequenceTest as _HasSequenceTest,
130
154
  )
131
- from sqlalchemy.testing.suite.test_results import (
132
- RowFetchTest as _RowFetchTest,
155
+ from sqlalchemy.testing.suite.test_sequence import (
156
+ HasSequenceTestEmpty as _HasSequenceTestEmpty,
133
157
  )
158
+ from sqlalchemy.testing.suite.test_sequence import (
159
+ SequenceTest as _SequenceTest,
160
+ ) # noqa: F401, F403
134
161
  from sqlalchemy.testing.suite.test_types import ( # noqa: F401, F403
135
162
  BooleanTest as _BooleanTest,
163
+ ) # noqa: F401, F403
164
+ from sqlalchemy.testing.suite.test_types import (
136
165
  DateTest as _DateTest,
137
- _DateFixture as __DateFixture,
138
- DateTimeHistoricTest,
166
+ )
167
+ from sqlalchemy.testing.suite.test_types import (
139
168
  DateTimeCoercedToDateTimeTest as _DateTimeCoercedToDateTimeTest,
169
+ )
170
+ from sqlalchemy.testing.suite.test_types import ( # noqa: F401
171
+ DateTimeHistoricTest,
172
+ TimestampMicrosecondsTest,
173
+ _LiteralRoundTripFixture,
174
+ )
175
+ from sqlalchemy.testing.suite.test_types import (
140
176
  DateTimeMicrosecondsTest as _DateTimeMicrosecondsTest,
177
+ )
178
+ from sqlalchemy.testing.suite.test_types import (
141
179
  DateTimeTest as _DateTimeTest,
180
+ )
181
+ from sqlalchemy.testing.suite.test_types import (
142
182
  IntegerTest as _IntegerTest,
183
+ )
184
+ from sqlalchemy.testing.suite.test_types import (
143
185
  JSONTest as _JSONTest,
144
- _LiteralRoundTripFixture,
186
+ )
187
+ from sqlalchemy.testing.suite.test_types import (
145
188
  NumericTest as _NumericTest,
189
+ )
190
+ from sqlalchemy.testing.suite.test_types import (
146
191
  StringTest as _StringTest,
192
+ )
193
+ from sqlalchemy.testing.suite.test_types import (
147
194
  TextTest as _TextTest,
148
- TimeTest as _TimeTest,
195
+ )
196
+ from sqlalchemy.testing.suite.test_types import (
149
197
  TimeMicrosecondsTest as _TimeMicrosecondsTest,
150
- TimestampMicrosecondsTest,
151
- UnicodeVarcharTest as _UnicodeVarcharTest,
198
+ )
199
+ from sqlalchemy.testing.suite.test_types import (
200
+ TimeTest as _TimeTest,
201
+ )
202
+ from sqlalchemy.testing.suite.test_types import (
152
203
  UnicodeTextTest as _UnicodeTextTest,
204
+ )
205
+ from sqlalchemy.testing.suite.test_types import (
206
+ UnicodeVarcharTest as _UnicodeVarcharTest,
207
+ )
208
+ from sqlalchemy.testing.suite.test_types import (
209
+ _DateFixture as __DateFixture,
210
+ )
211
+ from sqlalchemy.testing.suite.test_types import (
153
212
  _UnicodeFixture as __UnicodeFixture,
154
- ) # noqa: F401, F403
213
+ )
214
+ from sqlalchemy.testing.suite.test_unicode_ddl import * # noqa: F401, F403
215
+ from sqlalchemy.testing.suite.test_update_delete import * # noqa: F401, F403
216
+ from sqlalchemy.testing.suite.test_update_delete import (
217
+ SimpleUpdateDeleteTest as _SimpleUpdateDeleteTest,
218
+ )
219
+ from sqlalchemy.types import Integer, Numeric, Text
220
+
221
+ from google.cloud import spanner_dbapi
222
+ from google.cloud.sqlalchemy_spanner import version as sqlalchemy_spanner_version
155
223
  from tests._helpers import (
156
224
  get_db_url,
157
225
  get_project,
158
226
  )
159
227
 
160
- from google.cloud.sqlalchemy_spanner import version as sqlalchemy_spanner_version
161
-
162
-
163
228
  config.test_schema = ""
164
229
 
165
230
 
@@ -1186,7 +1251,7 @@ class ComponentReflectionTest(_ComponentReflectionTest):
1186
1251
  event.listen(
1187
1252
  user_tmp,
1188
1253
  "after_create",
1189
- DDL("create temporary view user_tmp_v as " "select * from user_tmp"),
1254
+ DDL("create temporary view user_tmp_v as select * from user_tmp"),
1190
1255
  )
1191
1256
  event.listen(user_tmp, "before_drop", DDL("drop view user_tmp_v"))
1192
1257
 
@@ -2878,7 +2943,7 @@ class PostCompileParamsTest(_PostCompileParamsTest):
2878
2943
 
2879
2944
  asserter.assert_(
2880
2945
  sqlalchemy.testing.assertsql.CursorSQL(
2881
- "SELECT some_table.id \nFROM some_table " "\nWHERE some_table.x = 10",
2946
+ "SELECT some_table.id \nFROM some_table \nWHERE some_table.x = 10",
2882
2947
  [] if config.db.dialect.positional else {},
2883
2948
  )
2884
2949
  )
@@ -13,8 +13,8 @@
13
13
  # limitations under the License.
14
14
 
15
15
  from sqlalchemy.testing import exclusions
16
- from sqlalchemy.testing.requirements import SuiteRequirements
17
16
  from sqlalchemy.testing.exclusions import against, only_on
17
+ from sqlalchemy.testing.requirements import SuiteRequirements
18
18
 
19
19
 
20
20
  class Requirements(SuiteRequirements): # pragma: no cover