From: Mike Bayer Date: Sun, 12 Sep 2010 23:24:40 +0000 (-0400) Subject: turn this test back to what it was X-Git-Tag: rel_0_6_5~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ddd7fc20d50a131bdc589c0d5ae0f2cdb0fc324;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git turn this test back to what it was --- diff --git a/test/zblog/test_zblog.py b/test/zblog/test_zblog.py index 99ed369f22..8103cde8b0 100644 --- a/test/zblog/test_zblog.py +++ b/test/zblog/test_zblog.py @@ -53,13 +53,14 @@ class SavePostTest(ZBlogTest): super(SavePostTest, cls).teardown_class() def test_attach_noautoflush(self): + """Test pending backref behavior.""" + s = create_session(bind=testing.db, autoflush=False) s.begin() try: blog = s.query(Blog).get(blog_id) - user = s.query(User).get(user_id) - post = Post(headline="asdf asdf", summary="asdfasfd", user=user) + post = Post(headline="asdf asdf", summary="asdfasfd") s.add(post) post.blog_id=blog_id post.blog = blog