Commits

Mike Bayer committed 3f6d4f8

removed default schema test; this is supported in 0.4

  • Participants
  • Parent commits d620e4d
  • Branches rel_0_3
  • Tags rel_0_3_11

Comments (0)

Files changed (1)

File test/engine/reflection.py

         assert buf.index("CREATE TABLE someschema.table1") > -1
         assert buf.index("CREATE TABLE someschema.table2") > -1
 
-    @testbase.unsupported('sqlite', 'postgres', 'firebird')
-    def test_create_with_defaultschema(self):
-        engine = testbase.db
-        schema = engine.dialect.get_default_schema_name(engine)
-
-        # test reflection of tables with an explcit schemaname
-        # matching the default
-        metadata = MetaData(testbase.db)
-        table1 = Table('table1', metadata,
-            Column('col1', Integer, primary_key=True),
-            schema=schema)
-        table2 = Table('table2', metadata,
-            Column('col1', Integer, primary_key=True),
-            Column('col2', Integer, ForeignKey('%s.table1.col1' % schema)),
-            schema=schema)
-        metadata.create_all()
-        metadata.create_all(checkfirst=True)
-        metadata.clear()
-        table1 = Table('table1', metadata, autoload=True, schema=schema)
-        table2 = Table('table2', metadata, autoload=True, schema=schema)
-        assert table1.schema == table2.schema == schema
-        assert len(metadata.tables) == 2
-        metadata.drop_all()
-
 
 if __name__ == "__main__":
     testbase.main()