Skip to content

variant rendering is missing the "dialect-specific variant first" use case #1585

@zzzeek

Description

@zzzeek

Discussed in #1584

    def test_render_reverse_variant(self):
        self.autogen_context.opts["user_module_prefix"] = None

        type_ = (
            LONGTEXT().with_variant(String(10), "oracle")
        )

        eq_ignore_whitespace(
            autogenerate.render._repr_type(type_, self.autogen_context),
            "mysql.LONGTEXT()."
            "with_variant(sa.String(length=10), 'oracle')",
        )

skips the variants due to dialect check first

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions