From: Mike Bayer Date: Fri, 27 Dec 2013 18:28:18 +0000 (-0500) Subject: - add a test which creates tables and views at the same time, then tests that the... X-Git-Tag: rel_0_8_5~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab1ab82f16180e31f6a44045c6e25ffc73039a3e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - add a test which creates tables and views at the same time, then tests that the lists of each can be reflected independently. Testing [ticket:2898] at the moment. --- diff --git a/lib/sqlalchemy/testing/suite/test_reflection.py b/lib/sqlalchemy/testing/suite/test_reflection.py index c432fc7358..8b257e96eb 100644 --- a/lib/sqlalchemy/testing/suite/test_reflection.py +++ b/lib/sqlalchemy/testing/suite/test_reflection.py @@ -180,6 +180,12 @@ class ComponentReflectionTest(fixtures.TablesTest): def test_get_view_names_with_schema(self): self._test_get_table_names('test_schema', table_type='view') + @testing.requires.table_reflection + @testing.requires.view_reflection + def test_get_tables_and_views(self): + self._test_get_table_names() + self._test_get_table_names(table_type='view') + def _test_get_columns(self, schema=None, table_type='table'): meta = MetaData(testing.db) users, addresses, dingalings = self.tables.users, \