diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-01-06 01:19:47 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-01-06 18:23:11 -0500 |
commit | 1e278de4cc9a4181e0747640a960e80efcea1ca9 (patch) | |
tree | 13d0c035807613bfa07e734acad79b9c843cb8b0 /test/dialect/postgresql/test_compiler.py | |
parent | 1e1a38e7801f410f244e4bbb44ec795ae152e04e (diff) | |
download | sqlalchemy-1e278de4cc9a4181e0747640a960e80efcea1ca9.tar.gz |
Post black reformatting
Applied on top of a pure run of black -l 79 in
I7eda77fed3d8e73df84b3651fd6cfcfe858d4dc9, this set of changes
resolves all remaining flake8 conditions for those codes
we have enabled in setup.cfg.
Included are resolutions for all remaining flake8 issues
including shadowed builtins, long lines, import order, unused
imports, duplicate imports, and docstring issues.
Change-Id: I4f72d3ba1380dd601610ff80b8fb06a2aff8b0fe
Diffstat (limited to 'test/dialect/postgresql/test_compiler.py')
-rw-r--r-- | test/dialect/postgresql/test_compiler.py | 76 |
1 files changed, 41 insertions, 35 deletions
diff --git a/test/dialect/postgresql/test_compiler.py b/test/dialect/postgresql/test_compiler.py index 58e421f8a..a9c9722c9 100644 --- a/test/dialect/postgresql/test_compiler.py +++ b/test/dialect/postgresql/test_compiler.py @@ -1,45 +1,51 @@ # coding: utf-8 -from sqlalchemy.testing.assertions import ( - AssertsCompiledSQL, - is_, - assert_raises, - assert_raises_message, - expect_warnings, -) -from sqlalchemy.testing import engines, fixtures +from sqlalchemy import and_ +from sqlalchemy import cast +from sqlalchemy import Column +from sqlalchemy import delete +from sqlalchemy import Enum +from sqlalchemy import exc +from sqlalchemy import func +from sqlalchemy import Index +from sqlalchemy import Integer +from sqlalchemy import MetaData +from sqlalchemy import null +from sqlalchemy import schema +from sqlalchemy import select +from sqlalchemy import Sequence +from sqlalchemy import String +from sqlalchemy import Table from sqlalchemy import testing -from sqlalchemy import ( - Sequence, - Table, - Column, - Integer, - update, - String, - func, - MetaData, - Enum, - Index, - and_, - delete, - select, - cast, - text, - Text, - null, -) +from sqlalchemy import Text +from sqlalchemy import text from sqlalchemy import types as sqltypes -from sqlalchemy.dialects.postgresql import ExcludeConstraint, array -from sqlalchemy import exc, schema +from sqlalchemy import update from sqlalchemy.dialects import postgresql +from sqlalchemy.dialects.postgresql import aggregate_order_by +from sqlalchemy.dialects.postgresql import ARRAY as PG_ARRAY +from sqlalchemy.dialects.postgresql import array +from sqlalchemy.dialects.postgresql import array_agg as pg_array_agg +from sqlalchemy.dialects.postgresql import ExcludeConstraint +from sqlalchemy.dialects.postgresql import insert from sqlalchemy.dialects.postgresql import TSRANGE -from sqlalchemy.orm import mapper, aliased, Session -from sqlalchemy.sql import table, column, operators, literal_column +from sqlalchemy.orm import aliased +from sqlalchemy.orm import mapper +from sqlalchemy.orm import Session +from sqlalchemy.sql import column +from sqlalchemy.sql import literal_column +from sqlalchemy.sql import operators +from sqlalchemy.sql import table from sqlalchemy.sql import util as sql_util -from sqlalchemy.util import u, OrderedDict -from sqlalchemy.dialects.postgresql import aggregate_order_by, insert -from sqlalchemy.dialects.postgresql import array_agg as pg_array_agg -from sqlalchemy.dialects.postgresql import ARRAY as PG_ARRAY +from sqlalchemy.testing import engines +from sqlalchemy.testing import fixtures +from sqlalchemy.testing.assertions import assert_raises +from sqlalchemy.testing.assertions import assert_raises_message +from sqlalchemy.testing.assertions import AssertsCompiledSQL +from sqlalchemy.testing.assertions import expect_warnings +from sqlalchemy.testing.assertions import is_ +from sqlalchemy.util import OrderedDict +from sqlalchemy.util import u class SequenceTest(fixtures.TestBase, AssertsCompiledSQL): |