]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Enum autogenerate renders the native_enum flag as well
authorDimitris Theodorou <dimitris.theodorou@gmail.com>
Mon, 12 Jan 2015 01:37:19 +0000 (02:37 +0100)
committerDimitris Theodorou <dimitris.theodorou@gmail.com>
Mon, 12 Jan 2015 01:39:36 +0000 (02:39 +0100)
tests/test_autogen_render.py

index 5313891bc13d9e612343f4fc30625aad77881d3c..893129d579ef5732e5b07bf3ae9b81ac63836d94 100644 (file)
@@ -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()