summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-11-01 20:59:40 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-11-01 20:59:40 +0000
commit2cefbf11c352cb76b30b67a6790b63083f75d5f3 (patch)
tree40238d8db51986cfab8ce6f49579fa73910c5f7a /test
parent98f80d6ce9aa27bbf2598a2669d3415346213d26 (diff)
downloadsqlalchemy-2cefbf11c352cb76b30b67a6790b63083f75d5f3.tar.gz
add "dialect" to the __all__ of each root dialect package
Diffstat (limited to 'test')
-rw-r--r--test/engine/test_parseconnect.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/engine/test_parseconnect.py b/test/engine/test_parseconnect.py
index daa2dd5dc..62e5d58d6 100644
--- a/test/engine/test_parseconnect.py
+++ b/test/engine/test_parseconnect.py
@@ -1,4 +1,4 @@
-from sqlalchemy.test.testing import assert_raises, assert_raises_message
+from sqlalchemy.test.testing import assert_raises, assert_raises_message, eq_
import ConfigParser
import StringIO
import sqlalchemy.engine.url as url
@@ -36,6 +36,14 @@ class ParseConnectTest(TestBase):
assert u.host == 'hostspec' or u.host == '127.0.0.1' or (not u.host)
assert str(u) == text
+class DialectImportTest(TestBase):
+ def test_import_base_dialects(self):
+ for name in ('mysql', 'firebird', 'postgresql', 'sqlite', 'oracle', 'mssql'):
+ exec("from sqlalchemy.dialects import %s\n"
+ "dialect = %s.dialect()"
+ % (name, name))
+ eq_(dialect.name, name)
+
class CreateEngineTest(TestBase):
"""test that create_engine arguments of different types get propagated properly"""
def test_connect_query(self):