kombu/funtests/tests/test_sqla.py

17 lines
402 B
Python
Raw Normal View History

from nose import SkipTest
from funtests import transport
class test_sqla(transport.TransportCase):
transport = "sqlalchemy"
prefix = "sqlalchemy"
event_loop_max = 10
connection_options = {"hostname": "sqlite://"}
def before_connect(self):
try:
import sqlakombu # noqa
except ImportError:
raise SkipTest("kombu-sqlalchemy not installed")