]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
turn this test back to what it was
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 12 Sep 2010 23:24:40 +0000 (19:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 12 Sep 2010 23:24:40 +0000 (19:24 -0400)
test/zblog/test_zblog.py

index 99ed369f22901dbf6342a0baff35605ef6ae0f05..8103cde8b0d988e7f3b0540a0d139ceab7860afe 100644 (file)
@@ -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