Commits

Mike Bayer  committed b4310bb

this is what I meant to do here but this should be improved

  • Participants
  • Parent commits 2509bd2

Comments (0)

Files changed (1)

File test/orm/test_query.py

         assert [] == create_session().query(User).order_by(User.id)[0:0]
         
     def test_exists(self):
-        sess = create_session()
+        sess = create_session(testing.db)
         
-        assert sess.query(exists([User.id])).filter(User.id==9).scalar()
-        assert not sess.query(exists([User.id])).filter(User.id==29).scalar()
+        assert sess.query(exists().where(User.id==9)).scalar()
+        assert not sess.query(exists().where(User.id==29)).scalar()
         
     def test_one_filter(self):
         assert [User(id=8), User(id=9)] == create_session().query(User).filter(User.name.endswith('ed')).all()