]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix this test for MySQL, needs InnoDB
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 May 2014 22:09:11 +0000 (18:09 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 May 2014 22:09:28 +0000 (18:09 -0400)
test/ext/test_automap.py

index 78985f1340106e65b2bd2a1b867c3ac00539c522..f24164cb7c3b0953fc9a38ce493120a43aa1ad74 100644 (file)
@@ -4,8 +4,9 @@ from sqlalchemy.ext.automap import automap_base
 from sqlalchemy.orm import relationship, interfaces, backref
 from sqlalchemy.ext.automap import generate_relationship
 from sqlalchemy.testing.mock import Mock, call
-from sqlalchemy import Column, String, Table, Integer, ForeignKey
+from sqlalchemy import String, Integer, ForeignKey
 from sqlalchemy import testing
+from sqlalchemy.testing.schema import Table, Column
 
 class AutomapTest(fixtures.MappedTest):
     @classmethod
@@ -153,16 +154,19 @@ class AutomapInhTest(fixtures.MappedTest):
     def define_tables(cls, metadata):
         Table('single', metadata,
                 Column('id', Integer, primary_key=True),
-                Column('type', String(10))
+                Column('type', String(10)),
+                test_needs_fk=True
             )
 
         Table('joined_base', metadata,
                 Column('id', Integer, primary_key=True),
-                Column('type', String(10))
+                Column('type', String(10)),
+                test_needs_fk=True
             )
 
         Table('joined_inh', metadata,
                 Column('id', Integer, ForeignKey('joined_base.id'), primary_key=True),
+                test_needs_fk=True
             )
 
         FixtureTest.define_tables(metadata)