mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-23 17:11:39 -04:00
20cdc64588
become an externally usable package but still remains within the main sqlalchemy parent package. in this system, we use kind of an ugly hack to get the noseplugin imported outside of the "sqlalchemy" package, while still making it available within sqlalchemy for usage by third party libraries.
17 lines
549 B
Python
17 lines
549 B
Python
from sqlalchemy.testing import eq_
|
|
from sqlalchemy.connectors import pyodbc
|
|
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
|
|
) |