(self, metadata)
| 126 | |
| 127 | @config.fixture |
| 128 | def decl_base(self, metadata): |
| 129 | _md = metadata |
| 130 | |
| 131 | class Base(DeclarativeBase): |
| 132 | metadata = _md |
| 133 | type_annotation_map = { |
| 134 | str: sa.String().with_variant( |
| 135 | sa.String(50), "mysql", "mariadb", "oracle" |
| 136 | ) |
| 137 | } |
| 138 | |
| 139 | yield Base |
| 140 | Base.registry.dispose() |
| 141 | |
| 142 | @config.fixture |
| 143 | def dc_decl_base(self, metadata): |