Files
sqlalchemy/test/dialect/test_all.py
T
Mike Bayer 1e278de4cc 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
2019-01-06 18:23:11 -05:00

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))