(self, metadata)
| 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): |