diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-06 12:19:22 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-06 12:19:22 -0400 |
commit | ec7ea3d2646fbf36a1d40edb6215c916d11fd8aa (patch) | |
tree | 3d014a642856a0cc2af36ca93298529ae1a1417c | |
parent | 63e2a0f8eba8c2a3b522abb86d17edb6c7bc94ee (diff) | |
download | sqlalchemy-ec7ea3d2646fbf36a1d40edb6215c916d11fd8aa.tar.gz |
mo tests mo problems
-rw-r--r-- | test/orm/test_eager_relations.py | 7 | ||||
-rw-r--r-- | test/orm/test_subquery_relations.py | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/test/orm/test_eager_relations.py b/test/orm/test_eager_relations.py index f4231b5d6..7ec51c6e9 100644 --- a/test/orm/test_eager_relations.py +++ b/test/orm/test_eager_relations.py @@ -2608,19 +2608,20 @@ class CyclicalInheritingEagerTestTwo(fixtures.DeclarativeMappedTest, Base = cls.DeclarativeBasic class PersistentObject(Base): __tablename__ = 'persistent' - id = Column(Integer, primary_key=True) + id = Column(Integer, primary_key=True, + test_needs_autoincrement=True) class Movie(PersistentObject): __tablename__ = 'movie' id = Column(Integer, ForeignKey('persistent.id'), primary_key=True) director_id = Column(Integer, ForeignKey('director.id')) - title = Column(String) + title = Column(String(50)) class Director(PersistentObject): __tablename__ = 'director' id = Column(Integer, ForeignKey('persistent.id'), primary_key=True) movies = relationship("Movie", foreign_keys=Movie.director_id) - name = Column(String) + name = Column(String(50)) def test_from_subclass(self): diff --git a/test/orm/test_subquery_relations.py b/test/orm/test_subquery_relations.py index 209385fde..8d7c89044 100644 --- a/test/orm/test_subquery_relations.py +++ b/test/orm/test_subquery_relations.py @@ -1327,19 +1327,19 @@ class CyclicalInheritingEagerTestTwo(fixtures.DeclarativeMappedTest, Base = cls.DeclarativeBasic class PersistentObject(Base): __tablename__ = 'persistent' - id = Column(Integer, primary_key=True) + id = Column(Integer, primary_key=True, test_needs_autoincrement=True) class Movie(PersistentObject): __tablename__ = 'movie' id = Column(Integer, ForeignKey('persistent.id'), primary_key=True) director_id = Column(Integer, ForeignKey('director.id')) - title = Column(String) + title = Column(String(50)) class Director(PersistentObject): __tablename__ = 'director' id = Column(Integer, ForeignKey('persistent.id'), primary_key=True) movies = relationship("Movie", foreign_keys=Movie.director_id) - name = Column(String) + name = Column(String(50)) def test_from_subclass(self): |