Files
sqlalchemy/test/dialect/test_pyodbc.py
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

16 lines
505 B
Python

from sqlalchemy.connectors import pyodbc
from sqlalchemy.testing import eq_
from sqlalchemy.testing import fixtures
class PyODBCTest(fixtures.TestBase):
def test_pyodbc_version(self):
connector = pyodbc.PyODBCConnector()
for vers, expected in [
("2.1.8", (2, 1, 8)),
("py3-3.0.1-beta4", (3, 0, 1, "beta4")),
("10.15.17", (10, 15, 17)),
("crap.crap.crap", ()),
]:
eq_(connector._parse_dbapi_version(vers), expected)