File tree 10 files changed +21
-67
lines changed
10 files changed +21
-67
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
from .schema import CheckConstraint # noqa
12
12
from .schema import Column # noqa
13
13
from .schema import ColumnDefault # noqa
14
+ from .schema import Computed # noqa
14
15
from .schema import Constraint # noqa
15
16
from .schema import DDL # noqa
16
17
from .schema import DefaultClause # noqa
17
18
from .schema import FetchedValue # noqa
18
19
from .schema import ForeignKey # noqa
19
20
from .schema import ForeignKeyConstraint # noqa
20
- from .schema import Computed # noqa
21
21
from .schema import Index # noqa
22
22
from .schema import MetaData # noqa
23
23
from .schema import PrimaryKeyConstraint # noqa
Original file line number Diff line number Diff line change @@ -181,9 +181,9 @@ def _show_create_table(
181
181
):
182
182
return MySQLDialect ._show_create_table (
183
183
self ,
184
- connection .connect (
185
- close_with_result = True
186
- ). execution_options ( _oursql_plain_query = True ) ,
184
+ connection .connect (close_with_result = True ). execution_options (
185
+ _oursql_plain_query = True
186
+ ),
187
187
table ,
188
188
charset ,
189
189
full_name ,
Original file line number Diff line number Diff line change @@ -119,14 +119,14 @@ def on_connect(conn):
119
119
pyodbc_SQL_CHAR = 1 # pyodbc.SQL_CHAR
120
120
pyodbc_SQL_WCHAR = - 8 # pyodbc.SQL_WCHAR
121
121
if sys .version_info .major > 2 :
122
- conn .setdecoding (pyodbc_SQL_CHAR , encoding = ' utf-8' )
123
- conn .setdecoding (pyodbc_SQL_WCHAR , encoding = ' utf-8' )
124
- conn .setencoding (encoding = ' utf-8' )
122
+ conn .setdecoding (pyodbc_SQL_CHAR , encoding = " utf-8" )
123
+ conn .setdecoding (pyodbc_SQL_WCHAR , encoding = " utf-8" )
124
+ conn .setencoding (encoding = " utf-8" )
125
125
else :
126
- conn .setdecoding (pyodbc_SQL_CHAR , encoding = ' utf-8' )
127
- conn .setdecoding (pyodbc_SQL_WCHAR , encoding = ' utf-8' )
128
- conn .setencoding (str , encoding = ' utf-8' )
129
- conn .setencoding (unicode , encoding = ' utf-8' )
126
+ conn .setdecoding (pyodbc_SQL_CHAR , encoding = " utf-8" )
127
+ conn .setdecoding (pyodbc_SQL_WCHAR , encoding = " utf-8" )
128
+ conn .setencoding (str , encoding = " utf-8" )
129
+ conn .setencoding (unicode , encoding = " utf-8" )
130
130
131
131
return on_connect
132
132
Original file line number Diff line number Diff line change 41
41
from .sql .schema import ColumnCollectionConstraint # noqa
42
42
from .sql .schema import ColumnCollectionMixin # noqa
43
43
from .sql .schema import ColumnDefault # noqa
44
+ from .sql .schema import Computed # noqa
44
45
from .sql .schema import Constraint # noqa
45
46
from .sql .schema import DefaultClause # noqa
46
47
from .sql .schema import DefaultGenerator # noqa
47
48
from .sql .schema import FetchedValue # noqa
48
49
from .sql .schema import ForeignKey # noqa
49
50
from .sql .schema import ForeignKeyConstraint # noqa
50
- from .sql .schema import Computed # noqa
51
51
from .sql .schema import Index # noqa
52
52
from .sql .schema import MetaData # noqa
53
53
from .sql .schema import PrimaryKeyConstraint # noqa
Original file line number Diff line number Diff line change @@ -715,7 +715,7 @@ def visit_table(
715
715
CreateTable (
716
716
table ,
717
717
include_foreign_key_constraints = # noqa
718
- include_foreign_key_constraints ,
718
+ include_foreign_key_constraints , # noqa
719
719
)
720
720
# fmt: on
721
721
)
Original file line number Diff line number Diff line change @@ -303,9 +303,7 @@ def print_sql():
303
303
d = engine .dialect
304
304
return "\n " .join (str (s .compile (dialect = d )) for s in engine .mock )
305
305
306
- engine = create_mock_engine (
307
- dialect_name + "://" , executor
308
- )
306
+ engine = create_mock_engine (dialect_name + "://" , executor )
309
307
assert not hasattr (engine , "mock" )
310
308
engine .mock = buffer
311
309
engine .assert_sql = assert_sql
Original file line number Diff line number Diff line change 20
20
logging .getLogger (provision .__name__ ).setLevel (logging .INFO )
21
21
22
22
provision .reap_dbs (sys .argv [1 ])
23
-
24
-
Original file line number Diff line number Diff line change 1
1
from sqlalchemy import testing
2
2
from sqlalchemy .orm import mapper
3
+ from . import test_mutable
3
4
from .test_mutable import Foo
4
- from .test_mutable import (
5
- MutableAssociationScalarPickleTest as _MutableAssociationScalarPickleTest ,
6
- )
7
- from .test_mutable import (
8
- MutableWithScalarJSONTest as _MutableWithScalarJSONTest ,
9
- )
10
5
11
6
12
- class MutableIncludeNonPrimaryTest (_MutableWithScalarJSONTest ):
7
+ class MutableIncludeNonPrimaryTest (test_mutable . MutableWithScalarJSONTest ):
13
8
@classmethod
14
9
def setup_mappers (cls ):
15
10
foo = cls .tables .foo
@@ -23,7 +18,9 @@ def setup_mappers(cls):
23
18
)
24
19
25
20
26
- class MutableAssocIncludeNonPrimaryTest (_MutableAssociationScalarPickleTest ):
21
+ class MutableAssocIncludeNonPrimaryTest (
22
+ test_mutable .MutableAssociationScalarPickleTest
23
+ ):
27
24
@classmethod
28
25
def setup_mappers (cls ):
29
26
foo = cls .tables .foo
Original file line number Diff line number Diff line change @@ -918,11 +918,11 @@ def test_prefixes(self):
918
918
919
919
self .assert_compile (
920
920
stmt ,
921
- ' WITH regional_sales AS NOT MATERIALIZED '
921
+ " WITH regional_sales AS NOT MATERIALIZED "
922
922
'(SELECT "order"."order" AS "order" '
923
923
'FROM "order") SELECT "order"."order" FROM "order", '
924
924
'regional_sales WHERE "order"."order" > regional_sales."order"' ,
925
- dialect = "postgresql"
925
+ dialect = "postgresql" ,
926
926
)
927
927
928
928
def test_suffixes (self ):
You can’t perform that action at this time.
0 commit comments