From: Dimitris Theodorou Date: Mon, 12 Jan 2015 01:37:19 +0000 (+0100) Subject: Enum autogenerate renders the native_enum flag as well X-Git-Tag: rel_0_7_4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fc1ec1e1b6939a30430a5dc0479440fbe7293dd;p=thirdparty%2Fsqlalchemy%2Falembic.git Enum autogenerate renders the native_enum flag as well --- diff --git a/tests/test_autogen_render.py b/tests/test_autogen_render.py index 5313891b..893129d5 100644 --- a/tests/test_autogen_render.py +++ b/tests/test_autogen_render.py @@ -938,6 +938,12 @@ unique=False, """ self.autogen_context), "sa.Enum('one', 'two', 'three')" ) + eq_ignore_whitespace( + autogenerate.render._repr_type( + Enum("one", "two", "three", native_enum=False), + self.autogen_context), + "sa.Enum('one', 'two', 'three', native_enum=False)" + ) def test_repr_plain_sqla_type(self): type_ = Integer()