From ef8c8d21cd1e1b04722308f7c4d900b75c5f91b7 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 2 Sep 2009 16:22:47 +0000 Subject: [PATCH] mysql doesn't like the 0's. not sure why but its not the point of the test in any case --- test/orm/test_naturalpks.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/orm/test_naturalpks.py b/test/orm/test_naturalpks.py index 28eb0bf23c..919c8f83c5 100644 --- a/test/orm/test_naturalpks.py +++ b/test/orm/test_naturalpks.py @@ -394,11 +394,11 @@ class ReversePKsTest(_base.MappedTest): session = sa.orm.sessionmaker()() - a_published = User(0, PUBLISHED, u'a') + a_published = User(1, PUBLISHED, u'a') session.add(a_published) session.commit() - a_editable = User(0, EDITABLE, u'a') + a_editable = User(1, EDITABLE, u'a') session.add(a_editable) session.commit() @@ -410,16 +410,16 @@ class ReversePKsTest(_base.MappedTest): a_editable.status = PUBLISHED session.commit() - assert session.query(User).get([0, PUBLISHED]) is a_editable - assert session.query(User).get([0, ARCHIVED]) is a_published + assert session.query(User).get([1, PUBLISHED]) is a_editable + assert session.query(User).get([1, ARCHIVED]) is a_published a_published.status = PUBLISHED a_editable.status = EDITABLE session.commit() - assert session.query(User).get([0, PUBLISHED]) is a_published - assert session.query(User).get([0, EDITABLE]) is a_editable + assert session.query(User).get([1, PUBLISHED]) is a_published + assert session.query(User).get([1, EDITABLE]) is a_editable class SelfRefTest(_base.MappedTest): -- 2.47.3