summaryrefslogtreecommitdiff
path: root/test/engine/test_parseconnect.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/engine/test_parseconnect.py')
-rw-r--r--test/engine/test_parseconnect.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/engine/test_parseconnect.py b/test/engine/test_parseconnect.py
index b39d5f8ad..22853cf37 100644
--- a/test/engine/test_parseconnect.py
+++ b/test/engine/test_parseconnect.py
@@ -394,6 +394,30 @@ class CreateEngineTest(fixtures.TestBase):
)
assert e.echo is True
+ def test_engine_from_config_future(self):
+ dbapi = mock_dbapi
+
+ config = {
+ "sqlalchemy.url": "postgresql://scott:tiger@somehost/test"
+ "?fooz=somevalue",
+ "sqlalchemy.future": "true",
+ }
+
+ e = engine_from_config(config, module=dbapi, _initialize=False)
+ assert e._is_future
+
+ def test_engine_from_config_not_future(self):
+ dbapi = mock_dbapi
+
+ config = {
+ "sqlalchemy.url": "postgresql://scott:tiger@somehost/test"
+ "?fooz=somevalue",
+ "sqlalchemy.future": "false",
+ }
+
+ e = engine_from_config(config, module=dbapi, _initialize=False)
+ assert not e._is_future
+
def test_pool_reset_on_return_from_config(self):
dbapi = mock_dbapi