mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-21 16:12:03 -04:00
1e278de4cc
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
18 lines
557 B
Python
18 lines
557 B
Python
from sqlalchemy import dialects
|
|
from sqlalchemy.testing import fixtures
|
|
from sqlalchemy.testing import is_not_
|
|
|
|
|
|
class ImportStarTest(fixtures.TestBase):
|
|
def _all_dialect_packages(self):
|
|
return [
|
|
getattr(__import__("sqlalchemy.dialects.%s" % d).dialects, d)
|
|
for d in dialects.__all__
|
|
if not d.startswith("_")
|
|
]
|
|
|
|
def test_all_import(self):
|
|
for package in self._all_dialect_packages():
|
|
for item_name in package.__all__:
|
|
is_not_(None, getattr(package, item_name))
|