MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_init

Method test_init

test/ext/asyncio/test_session.py:93–99  ·  view source on GitHub ↗
(self, async_engine)

Source from the content-addressed store, hash-verified

91 eq_(async_session.sync_session.info, {"foo": "bar"})
92
93 def test_init(self, async_engine):
94 ss = AsyncSession(bind=async_engine)
95 is_(ss.bind, async_engine)
96
97 binds = {Table: async_engine}
98 ss = AsyncSession(binds=binds)
99 is_(ss.binds, binds)
100
101 @async_test
102 @testing.combinations((True,), (False,), argnames="use_scalar")

Callers

nothing calls this directly

Calls 2

AsyncSessionClass · 0.90
is_Function · 0.90

Tested by

no test coverage detected