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/orm/inheritance/test_poly_loading.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/orm/inheritance/test_poly_loading.py')
| -rw-r--r-- | test/orm/inheritance/test_poly_loading.py | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/test/orm/inheritance/test_poly_loading.py b/test/orm/inheritance/test_poly_loading.py index 8f4abae41..8f1dc0188 100644 --- a/test/orm/inheritance/test_poly_loading.py +++ b/test/orm/inheritance/test_poly_loading.py @@ -1,25 +1,27 @@ -from sqlalchemy import String, Integer, Column, ForeignKey -from sqlalchemy.orm import ( - relationship, - Session, - joinedload, - selectin_polymorphic, - selectinload, - with_polymorphic, - backref, -) -from sqlalchemy.testing import fixtures +from sqlalchemy import Column +from sqlalchemy import ForeignKey +from sqlalchemy import Integer +from sqlalchemy import String from sqlalchemy import testing +from sqlalchemy.orm import backref +from sqlalchemy.orm import joinedload +from sqlalchemy.orm import relationship +from sqlalchemy.orm import selectin_polymorphic +from sqlalchemy.orm import selectinload +from sqlalchemy.orm import Session +from sqlalchemy.orm import with_polymorphic from sqlalchemy.testing import eq_ -from sqlalchemy.testing.assertsql import AllOf, CompiledSQL, EachOf, Or -from ._poly_fixtures import ( - Company, - Person, - Engineer, - Manager, - _Polymorphic, - GeometryFixtureBase, -) +from sqlalchemy.testing import fixtures +from sqlalchemy.testing.assertsql import AllOf +from sqlalchemy.testing.assertsql import CompiledSQL +from sqlalchemy.testing.assertsql import EachOf +from sqlalchemy.testing.assertsql import Or +from ._poly_fixtures import _Polymorphic +from ._poly_fixtures import Company +from ._poly_fixtures import Engineer +from ._poly_fixtures import GeometryFixtureBase +from ._poly_fixtures import Manager +from ._poly_fixtures import Person class BaseAndSubFixture(object): @@ -102,9 +104,11 @@ class BaseAndSubFixture(object): AllOf( EachOf( CompiledSQL( - "SELECT asub.id AS asub_id, a.id AS a_id, a.type AS a_type, " + "SELECT asub.id AS asub_id, a.id AS a_id, " + "a.type AS a_type, " "asub.asubdata AS asub_asubdata FROM a JOIN asub " - "ON a.id = asub.id WHERE a.id IN ([EXPANDING_primary_keys]) " + "ON a.id = asub.id " + "WHERE a.id IN ([EXPANDING_primary_keys]) " "ORDER BY a.id", {"primary_keys": [2]}, ), |
