From: Mike Bayer Date: Sun, 30 Sep 2012 23:59:40 +0000 (-0400) Subject: allow variability here X-Git-Tag: rel_0_8_0b1~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68fb10cae5069ca4408d38d546ac09d374171926;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git allow variability here --- diff --git a/lib/sqlalchemy/testing/suite/test_reflection.py b/lib/sqlalchemy/testing/suite/test_reflection.py index 9ca359fe84..a02ee479e9 100644 --- a/lib/sqlalchemy/testing/suite/test_reflection.py +++ b/lib/sqlalchemy/testing/suite/test_reflection.py @@ -115,8 +115,15 @@ class ComponentReflectionTest(fixtures.TablesTest): test_needs_fk=True, ) + cls.define_index(metadata, users) + cls.define_views(metadata, schema=None) + + @classmethod + def define_index(cls, metadata, users): Index("users_t_idx", users.c.test1, users.c.test2) + @classmethod + def define_views(cls, metadata, schema): for table_name in ('users', 'email_addresses'): fullname = table_name if schema: