
Lift the requirements to support SQLAlchemy 1.0. Two tests were calling upon revised APIs and required adjustment. Change-Id: Ic91a91bb3c915027b522eace302f2ed074233294
14 lines
376 B
Python
14 lines
376 B
Python
from sqlalchemy import select, text
|
|
from migrate.tests import fixture
|
|
|
|
class TestConnect(fixture.DB):
|
|
level=fixture.DB.TXN
|
|
|
|
@fixture.usedb()
|
|
def test_connect(self):
|
|
"""Connect to the database successfully"""
|
|
# Connection is done in fixture.DB setup; make sure we can do stuff
|
|
self.engine.execute(
|
|
select([text('42')])
|
|
)
|