From 9c96d96d0fe558d625755277e0b23a7bc82cd148 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 30 May 2014 18:09:11 -0400 Subject: [PATCH] - fix this test for MySQL, needs InnoDB --- test/ext/test_automap.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/ext/test_automap.py b/test/ext/test_automap.py index 78985f1340..f24164cb7c 100644 --- a/test/ext/test_automap.py +++ b/test/ext/test_automap.py @@ -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) -- 2.47.3