MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / dc_decl_base

Method dc_decl_base

lib/sqlalchemy/testing/fixtures/base.py:145–157  ·  lib/sqlalchemy/testing/fixtures/base.py::TestBase.dc_decl_base
(self, metadata)

Source from the content-addressed store, hash-verified

143
144 @config.fixture
145 def dc_decl_base(self, metadata):
146 _md = metadata
147
148 class Base(MappedAsDataclass, DeclarativeBase):
149 metadata = _md
150 type_annotation_map = {
151 str: sa.String().with_variant(
152 sa.String(50), class="st">"mysql", class="st">"mariadb"
153 )
154 }
155
156 yield Base
157 Base.registry.dispose()
158
159 @config.fixture()
160 def future_connection(self, future_engine, connection):

Callers

nothing calls this directly

Calls 1

disposeMethod · 0.45

Tested by

no test coverage detected