summaryrefslogtreecommitdiff
path: root/test/orm/inheritance/test_basic.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/orm/inheritance/test_basic.py')
-rw-r--r--test/orm/inheritance/test_basic.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/orm/inheritance/test_basic.py b/test/orm/inheritance/test_basic.py
index 558ce9bff..ad30ab44d 100644
--- a/test/orm/inheritance/test_basic.py
+++ b/test/orm/inheritance/test_basic.py
@@ -444,7 +444,8 @@ class SortOnlyOnImportantFKsTest(fixtures.MappedTest):
class A(Base):
__tablename__ = "a"
- id = Column(Integer, primary_key=True)
+ id = Column(Integer, primary_key=True,
+ test_needs_autoincrement=True)
b_id = Column(Integer, ForeignKey('b.id'))
class B(A):
@@ -471,8 +472,10 @@ class FalseDiscriminatorTest(fixtures.MappedTest):
Column('type', Boolean, nullable=False))
def test_false_on_sub(self):
- class Foo(object):pass
- class Bar(Foo):pass
+ class Foo(object):
+ pass
+ class Bar(Foo):
+ pass
mapper(Foo, t1, polymorphic_on=t1.c.type, polymorphic_identity=True)
mapper(Bar, inherits=Foo, polymorphic_identity=False)
sess = create_session()
@@ -1804,7 +1807,8 @@ class TransientInheritingGCTest(fixtures.TestBase):
class A(Base):
__tablename__ = 'a'
- id = Column(Integer, primary_key=True, test_needs_pk=True)
+ id = Column(Integer, primary_key=True,
+ test_needs_autoincrement=True)
data = Column(String(10))
self.A = A
return Base