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/test_rel_fn.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/test_rel_fn.py')
| -rw-r--r-- | test/orm/test_rel_fn.py | 60 |
1 files changed, 22 insertions, 38 deletions
diff --git a/test/orm/test_rel_fn.py b/test/orm/test_rel_fn.py index 7aac4ceca..8fd521ae8 100644 --- a/test/orm/test_rel_fn.py +++ b/test/orm/test_rel_fn.py @@ -1,26 +1,26 @@ -from sqlalchemy.testing import ( - assert_raises_message, - eq_, - AssertsCompiledSQL, - is_, -) +from sqlalchemy import and_ +from sqlalchemy import Boolean +from sqlalchemy import Column +from sqlalchemy import exc +from sqlalchemy import ForeignKey +from sqlalchemy import ForeignKeyConstraint +from sqlalchemy import func +from sqlalchemy import Integer +from sqlalchemy import MetaData +from sqlalchemy import select +from sqlalchemy import String +from sqlalchemy import Table +from sqlalchemy.orm import foreign +from sqlalchemy.orm import relationship +from sqlalchemy.orm import relationships +from sqlalchemy.orm import remote +from sqlalchemy.orm.interfaces import MANYTOONE +from sqlalchemy.orm.interfaces import ONETOMANY +from sqlalchemy.testing import assert_raises_message +from sqlalchemy.testing import AssertsCompiledSQL +from sqlalchemy.testing import eq_ from sqlalchemy.testing import fixtures -from sqlalchemy.orm import relationships, foreign, remote, relationship -from sqlalchemy import ( - MetaData, - Table, - Column, - ForeignKey, - Integer, - select, - ForeignKeyConstraint, - exc, - func, - and_, - String, - Boolean, -) -from sqlalchemy.orm.interfaces import ONETOMANY, MANYTOONE, MANYTOMANY +from sqlalchemy.testing import is_ from sqlalchemy.testing import mock @@ -487,22 +487,6 @@ class _JoinFixtures(object): **kw ) - cls.left = Table( - "lft", - m, - Column("id", Integer, primary_key=True), - Column("x", Integer), - Column("y", Integer), - ) - cls.right = Table( - "rgt", - m, - Column("id", Integer, primary_key=True), - Column("lid", Integer, ForeignKey("lft.id")), - Column("x", Integer), - Column("y", Integer), - ) - def _join_fixture_o2m_o_side_none(self, **kw): return relationships.JoinCondition( self.left, |
