("schema", None),
],
to_inspect=[Enum, SchemaType],
- omit_kwarg=["schema", "inherit_schema"],
+ omit_kwarg=["schema", "inherit_schema", "metadata"],
)
def as_generic(self, allow_nulltype=False):
"Enum('x', 'y', length=255)",
)
+ def test_repr_five(self):
+ # this tests that alembic autogenerate renders the enum correctly
+ # without the metadata since that isn't needed.
+ e = Enum("x", "y", length=42, metadata=MetaData(), schema="foo")
+ eq_(repr(e), "Enum('x', 'y', length=42, schema='foo')")
+
def test_length_native(self):
e = Enum("x", "y", "long", length=42)
eq_(e.length, 42)