MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_sync_dbapi_raises

Method test_sync_dbapi_raises

test/ext/asyncio/test_engine.py:1514–1519  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1512 __requires__ = ("asyncio",)
1513
1514 def test_sync_dbapi_raises(self):
1515 with expect_raises_message(
1516 exc.InvalidRequestError,
1517 "The asyncio extension requires an async driver to be used.",
1518 ):
1519 create_async_engine("sqlite:///:memory:")
1520
1521 @testing.fixture
1522 def async_engine(self):

Callers

nothing calls this directly

Calls 2

expect_raises_messageFunction · 0.90
create_async_engineFunction · 0.90

Tested by

no test coverage detected